The plug-in method
%CAD defines an editable 4D CAD area.
To use it, add it as a variable of type Plug-in Area to a 4D form.
The variable must be typed as a longint, in this case as
the Area ID.
%CAD area can be used as an auto-resizable area.
This is a useful feature, as the area will accomodate itself automatically when the user resizes
the 4D form’s window. To accomplish this
%CADarea on the 4D form large enough to fill up the largest display (for example 2000 or 3000 pixels wide)
The area can be customized with
CADSetBackColor, see Area.
%CAD area can be put on a 4D output form also, but it is recommended that you use a
%CADView area for that purpose instead.
%CAD area can not be used on a 4D output form for printing,
4D CAD has its own printing methods.
Loading and storing of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.