kCADEventIDKeyDown
and kCADEventIDAutoKeyDown
events was wrong (there is an After phase, not a Before phase).
CADGetEllipse
swapped CenterX and CenterY parameters. This has been fixed (cf. note 150).
CADGetZoom
returns 0.0 for theZoomUnitsPerPixel,
theZoomFactor, theZoomMaxFactor and theZoomMinFactor in the following cases:
The reason is, there is no (known) on-screen size. In this situation, CADGetZoom
returns
theZoomLoX, theZoomLoY, theZoomHiX, theZoomHiY as set by the last CADZoom
call.
kCADEventIDEditCut
, kCADEventIDEditClear
,
kCADEventIDObjTranslate
and kCADEventIDCommand
events.
CADCommand
skips objects that are locked (on the command’s action).
CADCommand
currently initiates no events.
kCADLockingIgnoreLock
.
kCADObjLockCutAndRemove
).
kCADScopeSelectedObjects
can be passed to CADEmptyScope
.
CADGetScopes has been renamed CADGetScopeIDs
.
CADLengthenObj
. If so, CADLengthenObj
doesn’t
return error kCADCannotLengthenObj
, but passes objects that cannot be
lengthened in the target scope. Source and target scope can be the same.
There is another new parameter: no objects are actually lengthened if
theOptionalCheckOnlyFlag is set.
CADFindByKey
is new. Source and target scope can be the same.
CADMetricsArray has been renamed CADMetrics
.
CADMetricsByMatrix
is new.
CADPolyBounds
is new.
CADStringBounds
is new.
CADLineAndArc
is new. It can be used to calculate the intersection between a line and
the frame (but not the fill) of a circle, circle-arc, ellipse or ellipse-arc.
kCADEventIDObjTranslate
event. The translation offset is ten pixels if the command key
is pressed, one pixel if it isn’t.
Note. Translating with arrow keys is implemented only in mode kCADModeTranslate
and in
mode kCADModeReshape
(if this mode can translate). In other situations a
kCADEventIDKeyDown
or kCADEventIDAutoKeyDown
event is generated.
CADGetXPrefs and CADSetXPrefs
have been removed (cf. note 266).
Note. An event parameter now indicates whether the special click is inside or
outside drawing bounds.
CADGetStringXY
, CADSetStringAlign, CADObjString
).
CADGetMatSpecs has been replaced by CADGetMatrixPlane
.
CADAddArray
, CADSetArray
, CADRemoveArray
and
CADCopyArrays
can now be called with the Clipboard area as the target area.
CADImportDXF
(if out of logical bounds).
CADCancelDXF
Solved known issue of CADAcceptDXF
CADSetMode
and custom palettes.
= 0.0 or radiusy = 0.0 was incorrect.
This has been fixed.
CADSetDrawSize
now rounds (insets) the drawing bounds to the largest possible pixel size
(which is the pixel size of the smallest possible zoom out). This guarantees that
pixel-to-coordinate transformations round to whole pixels.
CADFindByLock
is new. Source and target scope can be the same.
CADGetArrayIDs
is new.