Class ConstructDirectionTwoPoints
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Action that constructs a length as a distance between two points. It uses a LengthProperty to communicate the constructed length to the outside.
public class ConstructDirectionTwoPoints : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
- Inheritance
-
ConstructDirectionTwoPoints
- Implements
- Inherited Members
Constructors
ConstructDirectionTwoPoints(GeoVectorProperty)
public ConstructDirectionTwoPoints(GeoVectorProperty vectorProperty)
Parameters
vectorPropertyGeoVectorProperty
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()
OnRemoveAction()
Implements OnRemoveAction(). If you override this method don't forget to call the bas implementation.
public override void OnRemoveAction()
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()