Class Constr3DFaceExtrude
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Interactive construction of solids by extrusion: the user picks one or more closed planar paths, closed curves or faces (the current selection is used when the action is started with it) and defines the extrusion by a height perpendicular to the plane of the curve or to the drawing plane, by a vector or by a pipe path along which the shape is swept; an optional second height or vector offsets the base of the solid. The solids (see MakePrism(IGeoObject, GeoVector, Project, bool) and MakePipe(IGeoObject, Path, Project)) are inserted into the model, united with or subtracted from the existing solids according to SolidModellingMode. Started by the menu command "MenuId.Constr.Solid.FaceExtrude"; its id is "Constr.Solid.FaceExtrude".
public class Constr3DFaceExtrude : ConstructAction, ICommandHandler, IPropertyEntry
- Inheritance
-
Constr3DFaceExtrude
- Implements
- Inherited Members
Constructors
Constr3DFaceExtrude(Constr3DFaceExtrude)
public Constr3DFaceExtrude(Constr3DFaceExtrude autorepeat)
Parameters
autorepeatConstr3DFaceExtrude
Constr3DFaceExtrude(Face)
public Constr3DFaceExtrude(Face face)
Parameters
faceFace
Constr3DFaceExtrude(GeoObjectList)
public Constr3DFaceExtrude(GeoObjectList selectedObjectsList)
Parameters
selectedObjectsListGeoObjectList
Methods
AutoRepeat()
Detremins whether this action supports autorepeat. Autorepeat is enabled in the GlobalSettings.
public override bool AutoRepeat()
Returns
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 base implementation.
public override void OnSetAction()
faceTestExtrude(GeoObjectList)
public static bool faceTestExtrude(GeoObjectList selectedObjects)
Parameters
selectedObjectsGeoObjectList