CADRemoveLayer
.
CADSetLayerAttributes
now automatically deselects objects if the new layer/sublayer mode
is not kCADLayerModeEditable
.
CADSetLayer
caused redraw problems.
CADGetLayerMark and CADSetLayerMark are new.
CADGetLayerKeys and CADSetLayerKeys are new.
CADGetUnit
en CADSetUnit
have changed.
kCADScopeMarkedLayers.
kCADScopeSelectedObjects
,
kCADScopeAllObjects
,
kCADScopeObjOnEditableLayers
,
kCADScopeMarkedLayers (= 5).
Please note that a scope is comprised of objects of a single block.
CADAddScope
, CADRemoveScope
.
CADToScope
adds an object to a scope, CADFromScope
removes an object from a scope.
CADInScope
returns whether an object is in a scope.
CADScopeLogic
applies logical operations on scopes. A target scope can be a source scope
also.
CADCopyScope
copies a scope.
CADOneObjID
.
CADSelect
is new (but still incomplete).
CADGotoPage
is new.
The 4D layout page can be set to 0, which is the default value. If so, CAD tries to determine the current 4D layout page itself by calling 4D’s Layout page function.
Note.
CADGotoPage
on every
4D layout page swap, passing the new 4D layout page as a parameter.
CADGotoPage
( −1) is possible but strongly discouraged.
CADGotoPage
also prevents error kCADCannotPaste
.
CADLastArea
(to be used in TAppLastExtArea).
CADGetPrintClip, CADSetPrintClip,
CADGetPrintSpecs
, CADSetPrintSpecs
, CADPageSetup
, CADPrint
.
CADPrint
is still in an experimental state: a single page is printed, margins and bounds
are incorrect, clipping is unimplemented, all objects are printed (whatever the scope or
block), background-color should be set to white before printing, etc.
CADColorToIndex
now tries to find the best-matching color-index if no color in CAD’s
standard color palette matches the color-value precisely. There is a new parameter
theColorIdenticalFlag that returns whether the found color-index matches the
color-value precisely.
Note. CAD’s standard color palette is merely a user-interface tool.
CAD doesn’t store color-indices with objects but true 24-bit color-values.
CADDXFToColor
and CADColorToDXF
(useful when writing DXF files).
Note. DXF-color 7 may change with the AutoCAD background color. In CAD DXF-color 7 is
assumed to be black.
CADImportDXF
has disappeared. New is an option
to read color information embedded in DXF files.
Note. The color of INSERT objects is assumed to be kCADColorUncolored
.
CADBlend
.
CADAddCircle
and CADAddCircleArc
have changed.
Rotation parameter is new.
CADAddString
or CADSetString
contains a CR or LF character,
an error code is returned.
CADGetFont
and CADSetFont
have changed. They now get/set both a Macintosh and a
Windows font string.
CADGetColorsDim
and CADSetColorsDim
. No items can be selected in a dimmed
color-palette area.
CADRemoveLayer
.
kCADLayerMustBeEmpty,
kCADRemoveLayerObjects,
kCADRemoveLayerObjectsAndEmptyBlocks.
CADZoom
does nothing before the first screen update (4D problem).