Table of Contents

Class ConstructDistanceOfCurve

Namespace
CADability.Actions
Assembly
CADability.dll

Action that constructs a length as a length of a curve. It uses a LengthProperty to communicate the constructed length to the outside.

public class ConstructDistanceOfCurve : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
Inheritance
ConstructDistanceOfCurve
Implements
Inherited Members

Constructors

ConstructDistanceOfCurve(LengthProperty)

public ConstructDistanceOfCurve(LengthProperty lengthProperty)

Parameters

lengthProperty LengthProperty

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()