Class CadApiModelHelper
Inheritance
CadApiModelHelper
Assembly: CADIPC.DotnetHelper.dll
Syntax
public static class CadApiModelHelper
Methods
AddExtrude(ComWrapper<ICadIpcModel>, ComWrapper<ICadIpcSketchFace>, double)
Append an extrude feature on the given sketch face with signed
depth. Body geometry materialises on the next Save.
Declaration
public static ComWrapper<ICadIpcExtrudeFeature> AddExtrude(this ComWrapper<ICadIpcModel> modelCom, ComWrapper<ICadIpcSketchFace> faceCom, double depth)
Parameters
Returns
AddSketch(ComWrapper<ICadIpcModel>, int, double)
Add a 2D sketch on one of the orthogonal coordinate planes via IPC.
normalAxis: 1 = YZ plane, 2 = XZ plane, 3 = XY plane.
offset shifts the plane along the chosen axis.
Draw with AddLine / AddRectangle on the returned sketch,
then call Save(ComWrapper<ICadIpcModel>) to publish changes as child tree nodes.
Declaration
public static ComWrapper<ICadIpcSketch> AddSketch(this ComWrapper<ICadIpcModel> modelCom, int normalAxis, double offset)
Parameters
Returns
Body(ComWrapper<ICadIpcModel>, int)
Return the body at the given zero-based index.
Declaration
public static ComWrapper<ICadIpcBody> Body(this ComWrapper<ICadIpcModel> modelCom, int index)
Parameters
Returns
BodyCount(ComWrapper<ICadIpcModel>)
Number of bodies (parts) in this CAD model.
Declaration
public static int BodyCount(this ComWrapper<ICadIpcModel> modelCom)
Parameters
Returns
Feature(ComWrapper<ICadIpcModel>, int)
Return the feature at the given zero-based index.
Declaration
public static ComWrapper<ICadIpcFeature> Feature(this ComWrapper<ICadIpcModel> modelCom, int index)
Parameters
Returns
FeatureCount(ComWrapper<ICadIpcModel>)
Number of features in this CAD model's construction tree.
Declaration
public static int FeatureCount(this ComWrapper<ICadIpcModel> modelCom)
Parameters
Returns
Save(ComWrapper<ICadIpcModel>)
Publish in-memory CAD changes as child tree nodes of the host CAD group.
Equivalent to "save sketch + exit CAD" in the GUI.
Declaration
public static void Save(this ComWrapper<ICadIpcModel> modelCom)
Parameters