Class CopyMatrixObjects
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Action that arranges copies of the given objects in a rectangular grid (matrix). The user enters the number of copies to the right, to the left, above and below the originals, the horizontal and the vertical distance between the copies and optionally the direction of the rows (the columns are perpendicular to it in the active drawing plane). The copies are computed in a background task and inserted into the active model as individual objects when the action is finished. Menu id: "CopyMatrixObjects".
public class CopyMatrixObjects : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
CopyMatrixObjects
- Implements
- Inherited Members
Constructors
CopyMatrixObjects(GeoObjectList)
public CopyMatrixObjects(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()