Class ModelFormerWithHolesHelper
Helper methods for ICamApiModelFormerWithHoles
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class ModelFormerWithHolesHelper
Methods
AddHoleFromFeature(ComWrapper<ICamApiModelFormerWithHoles>, ComWrapper<ICamApiFeature>)
Adds hole(s) to the former from a recognized hole feature. For a simple ICamApiHoleFeature, creates one hole item. For an ICamApiComplexHoleFeature, creates one item per step. Preserves the base cylindrical/conical face from recognition.
Declaration
public static ComWrapper<ICamApiListModelItem> AddHoleFromFeature(this ComWrapper<ICamApiModelFormerWithHoles> modelFormerWithHolesCom, ComWrapper<ICamApiFeature> featureCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> | modelFormerWithHolesCom | |
| ComWrapper<ICamApiFeature> | featureCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiListModelItem> |
AddHolesBatch(ComWrapper<ICamApiModelFormerWithHoles>, ComWrapper<ICamApiHoleSpecList>)
Batch-creates holes from the supplied specification list. Returns the list of created model items.
Declaration
public static ComWrapper<ICamApiListModelItem> AddHolesBatch(this ComWrapper<ICamApiModelFormerWithHoles> modelFormerWithHolesCom, ComWrapper<ICamApiHoleSpecList> specsCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> | modelFormerWithHolesCom | |
| ComWrapper<ICamApiHoleSpecList> | specsCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiListModelItem> |
AddHolesSelected(ComWrapper<ICamApiModelFormerWithHoles>)
Declaration
public static ComWrapper<ICamApiListModelItem> AddHolesSelected(this ComWrapper<ICamApiModelFormerWithHoles> modelFormerWithHolesCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> | modelFormerWithHolesCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiListModelItem> |
AsWithHoles(ComWrapper<ICamApiModelFormer>)
Declaration
public static ComWrapper<ICamApiModelFormerWithHoles> AsWithHoles(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormer> | mfCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> |
CreateHoleSpecList(ComWrapper<ICamApiModelFormerWithHoles>)
Creates a new empty ICamApiHoleSpecList. Configure (LCS, Top/Bottom) and fill via pattern Add* methods, then pass to AddHolesBatch(ComWrapper<ICamApiModelFormerWithHoles>, ComWrapper<ICamApiHoleSpecList>).
Declaration
public static ComWrapper<ICamApiHoleSpecList> CreateHoleSpecList(this ComWrapper<ICamApiModelFormerWithHoles> modelFormerWithHolesCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> | modelFormerWithHolesCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiHoleSpecList> |
CreateNewHole(ComWrapper<ICamApiModelFormerWithHoles>, TST3DMatrix, double)
Declaration
public static ComWrapper<ICamApiHoleModelItem> CreateNewHole(this ComWrapper<ICamApiModelFormerWithHoles> modelFormerWithHolesCom, TST3DMatrix holeLCS, double diameter)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiModelFormerWithHoles> | modelFormerWithHolesCom | |
| TST3DMatrix | holeLCS | |
| double | diameter |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiHoleModelItem> |