Class MoveObjects
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Moves (or copies) the selected objects by a translation. The user enters the translation vector, either directly or by a start point and an end point, and decides whether the originals are moved or copies are created. While the action runs, a copy of the objects follows the mouse. Menu id: "MoveObjects".
public class MoveObjects : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
MoveObjects
- Implements
- Inherited Members
Constructors
MoveObjects(GeoObjectList)
public MoveObjects(GeoObjectList list)
Parameters
listGeoObjectList
Methods
GetID()
Must be implemented by derived class. Returns an identification string. All CADability actions return the unique strings like "Draw.Line.TwoPoints" or "Zoom"
public override string GetID()
Returns
- string
the identification of the action
OnDone()
Called, when the ConstructAction is done, i.e. all non-optional inputs have been fixed. The default implementation adds the active object (if it exists and HasValidData() returns true) to the active model and removes this action. Override this method if you need a different behaviour.
public override void OnDone()
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()
SetCopy(bool)
public void SetCopy(bool val)
Parameters
valbool