Next: , Previous: Event handling, Up: Programming tasks


4.5 Undo handling

Methods that call CADResetUndo internally. They always clear undo data.

CADAcceptDXF
CADCancelDXF
CADClear
CADCommand (except for command kCADCmdEditSelectAll)
CADImportDXF
CADLoadFromBlob
CADLoadFromFile
CADResetUndo


Methods that call CADAutoResetUndo internally. They clear undo data if theAutoResetUndoFlag of the area is kCADTrue (see CADGetUndoPrefs and CADSetUndoPrefs).

CADAddBlock
CADAddCircle
CADAddCircleArc
CADAddEllipse
CADAddEllipseArc
CADAddImage
CADAddInsert
CADAddInsertXY
CADAddLayer
CADAddLine
CADAddPolyLine
CADAddRectangle
CADAddSquare
CADAddString
CADAddSubLayer
CADAlign
CADAlignToGrid
CADBlend
CADCopyArea (target)
CADCopyArrays (target)
CADCopyAttributes (target)
CADCopyBlocks (target)
CADCopyByMatrix (target)
CADCopyLayers (target)
CADCopyObjByMatrix (target)
CADCopyObjTo (target)
CADCopyPrefs (target)
CADCopyTo (target)
CADFlipObj
CADImportImage
CADLengthenObj
CADMirror
CADMoveByMatrix (source and target)
CADMoveTo (source and target)
CADMoveToBack
CADMoveToFront
CADPageSetup
CADPolyUndouble
CADPrint
CADPrintToPDF
CADRemoveArray
CADRemoveBlock
CADRemoveLayer
CADRemoveObj
CADRotateObj
CADRotate
CADScale
CADSetBlockName
CADSetCircleArc
CADSetCircle
CADSetClipBox
CADSetColor
CADSetDrawSize
CADSetEllipseArc
CADSetEllipse
CADSetFill
CADSetFont
CADSetGrid
CADSetHatch
CADSetImage
CADSetImageXY
CADSetInsertColor
CADSetInsert
CADSetInsertID
CADSetInsertXY
CADSetKeyMask
CADSetLayer
CADSetLayerAttributes
CADSetLine
CADSetLineType
CADSetLineWidth
CADSetLock
CADSetLockByMask
CADSetMarking
CADSetObjLock
CADSetObjLockMask
CADSetPolyAngle
CADSetPolyLine
CADSetPrintSpecs
CADSetRectangle
CADSetRotation
CADSetScale
CADSetSquare
CADSetString
CADSetStringXY
CADSetUnit
CADShear
CADSplitPoly
CADStretchObj
CADTransform
CADTranslate


Please note that the following methods do not clear undo data:

CADSetBlockKey
CADSetCurrentLayer
CADSetKey
CADSetKeyArray
CADSetLayerOrder
CADSetLayerKey
CADSetObjKey

Also see the chapter on CAD events.