Class Measure
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Obsolete placeholder for a "Measure" action (menu id "Measure") that was meant to measure positions, lengths, angles and areas without creating objects. It defines no input fields, so starting it throws a ConstructActionException; the frame does not start it any more. The measuring functions are the entries of the "MenuId.Measure" sub menu, which start the corresponding construction actions (e.g. intersection point of two curves, point on an object, direction from two points). The class will be removed in the next minor version.
[Obsolete("Placeholder without input fields, starting it throws; use the construction actions of the \"MenuId.Measure\" sub menu. Will be removed in the next minor version.")]
public class Measure : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
Measure
- Implements
- Inherited Members
Constructors
Measure()
Creates the placeholder action.
public Measure()
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 bas implementation.
public override void OnSetAction()