Table of Contents

Class ConstructDirectionOfSurface

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 ConstructDirectionOfSurface : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
Inheritance
ConstructDirectionOfSurface
Implements
Inherited Members

Constructors

ConstructDirectionOfSurface(GeoVectorProperty)

public ConstructDirectionOfSurface(GeoVectorProperty vectorProperty)

Parameters

vectorProperty GeoVectorProperty

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

OnInactivate(Action, bool)

Implements OnInactivate(Action, bool). If you override this method don't forget to call the bas implementation.

public override void OnInactivate(Action NewActiveAction, bool RemovingAction)

Parameters

NewActiveAction Action

the action that will become active

RemovingAction bool

true: if called because the action is removed, false: if called when a new action is set on top of this action

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