Table of Contents

Class Constr3DRuledSolid

Namespace
CADability.Actions
Assembly
CADability.dll

Interactive construction of a ruled solid between two closed planar paths in different planes (a loft between two profiles): the user picks the two paths (single curves are combined to paths with the connected curves of the model) and the solid created by MakeRuledSolid(Path, Path, Project) is inserted into the model, united with or subtracted from the existing solids according to SolidModellingMode. When two suitable paths are already selected, ruledSolidDo(GeoObjectList, IFrame) creates the solid without further interaction. Started by the menu command "MenuId.Constr.Solid.RuledSolid"; its id is "Constr.Solid.RuledSolid".

public class Constr3DRuledSolid : ConstructAction, ICommandHandler, IPropertyEntry
Inheritance
Constr3DRuledSolid
Implements
Inherited Members

Constructors

Constr3DRuledSolid(Constr3DRuledSolid)

public Constr3DRuledSolid(Constr3DRuledSolid autorepeat)

Parameters

autorepeat Constr3DRuledSolid

Constr3DRuledSolid(GeoObjectList, IFrame)

public Constr3DRuledSolid(GeoObjectList geoObjectList, IFrame frame)

Parameters

geoObjectList GeoObjectList
frame IFrame

Methods

AutoRepeat()

Detremins whether this action supports autorepeat. Autorepeat is enabled in the GlobalSettings.

public override bool AutoRepeat()

Returns

bool

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

ruledSolidDo(GeoObjectList, IFrame)

public static void ruledSolidDo(GeoObjectList geoObjectList, IFrame frame)

Parameters

geoObjectList GeoObjectList
frame IFrame

ruledSolidDo(Path, Path, IFrame)

public static bool ruledSolidDo(Path p1, Path p2, IFrame frame)

Parameters

p1 Path
p2 Path
frame IFrame

Returns

bool

ruledSolidTest(GeoObjectList, Model)

public static bool ruledSolidTest(GeoObjectList geoObjectList, Model model)

Parameters

geoObjectList GeoObjectList
model Model

Returns

bool

ruledSolidTest(Path, Path)

public static bool ruledSolidTest(Path p1, Path p2)

Parameters

p1 Path
p2 Path

Returns

bool