Class ParametricsDistanceActionOld
- Namespace
- CADability
- Assembly
- CADability.dll
Should be replaced by ParametricsDistanceAction Action to modify the distance between two objects. The objects may be faces or edges or vertices (also a mix of types). First we calculate the offset vector: vertex->face: perpendicular foot point, vertex->edge: perpendicular foot point, vertex->vertex: connection edge->edge: minimum distance, edge->face: minimum distance, face->face: parallel or minimum distance. (objects with axis should also offer their axis for distance)
public class ParametricsDistanceActionOld : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
ParametricsDistanceActionOld
- Implements
- Inherited Members
Constructors
ParametricsDistanceActionOld(Edge, Edge, Line, Plane, IFrame)
public ParametricsDistanceActionOld(Edge fromHere, Edge toHere, Line feedback, Plane plane, IFrame frame)
Parameters
ParametricsDistanceActionOld(IEnumerable<Face>, Line, IFrame)
public ParametricsDistanceActionOld(IEnumerable<Face> facesToMove, Line axis, IFrame frame)
Parameters
facesToMoveIEnumerable<Face>axisLineframeIFrame
ParametricsDistanceActionOld(IEnumerable<Face>, IFrame)
public ParametricsDistanceActionOld(IEnumerable<Face> facesToMove, IFrame frame)
Parameters
facesToMoveIEnumerable<Face>frameIFrame
ParametricsDistanceActionOld(IEnumerable<Face>, IEnumerable<Face>, GeoPoint, GeoPoint, IFrame)
public ParametricsDistanceActionOld(IEnumerable<Face> part1, IEnumerable<Face> part2, GeoPoint point1, GeoPoint point2, IFrame frame)
Parameters
part1IEnumerable<Face>part2IEnumerable<Face>point1GeoPointpoint2GeoPointframeIFrame
ParametricsDistanceActionOld(object, IFrame)
public ParametricsDistanceActionOld(object distanceFromHere, IFrame frame)
Parameters
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
OnCommand(string)
Handles a few context menu commands. Don't forget to call the base implementation if you override this method. See ICommandHandler.
public override bool OnCommand(string MenuId)
Parameters
MenuIdstring
Returns
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()