Class CylinderPrimitiveModelItemHelper
Helper methods for ICamApiCylinderPrimitiveModelItem
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class CylinderPrimitiveModelItemHelper
Methods
AsHoleCylinderPrimitive(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static ComWrapper<ICamApiHoleCylinderPrimitiveModelItem> AsHoleCylinderPrimitive(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylItemCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiHoleCylinderPrimitiveModelItem> |
AsSimpleCylinderPrimitive(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static ComWrapper<ICamApiSimpleCylinderPrimitiveModelItem> AsSimpleCylinderPrimitive(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylItemCom |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiSimpleCylinderPrimitiveModelItem> |
GetAxis(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static TCylinderAxisType GetAxis(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| TCylinderAxisType |
GetCenterIsCenterOfBox(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static bool GetCenterIsCenterOfBox(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| bool |
GetHMaxStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetHMaxStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetHMinStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetHMinStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetHoleRadStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetHoleRadStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetHoleRadius(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetHoleRadius(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetLCS(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Current LCS matrix
Declaration
public static TST3DMatrix GetLCS(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
GetLcsName(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Name of active CS from project CS list
Declaration
public static string GetLcsName(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| string |
GetRadStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetRadStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetRadius(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static double GetRadius(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| double |
GetWithHole(ComWrapper<ICamApiCylinderPrimitiveModelItem>)
Declaration
public static bool GetWithHole(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom |
Returns
| Type | Description |
|---|---|
| bool |
SetAxis(ComWrapper<ICamApiCylinderPrimitiveModelItem>, TCylinderAxisType)
Declaration
public static void SetAxis(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, TCylinderAxisType axisType)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| TCylinderAxisType | axisType |
SetCenterIsCenterOfBox(ComWrapper<ICamApiCylinderPrimitiveModelItem>, bool)
Declaration
public static void SetCenterIsCenterOfBox(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| bool | value |
SetHMaxStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>, double)
Declaration
public static void SetHMaxStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| double | value |
SetHMinStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>, double)
Declaration
public static void SetHMinStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| double | value |
SetHoleRadStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>, double)
Declaration
public static void SetHoleRadStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| double | value |
SetHoleRadius(ComWrapper<ICamApiCylinderPrimitiveModelItem>, double)
Declaration
[Obsolete("HoleRadius is computed from geometry and cannot be set. This method is a no-op in the core implementation.")]
public static void SetHoleRadius(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| double | value |
SetLcsCustom(ComWrapper<ICamApiCylinderPrimitiveModelItem>, TST3DMatrix)
Set a custom LCS by matrix
Declaration
public static void SetLcsCustom(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, TST3DMatrix matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| TST3DMatrix | matrix |
SetLcsName(ComWrapper<ICamApiCylinderPrimitiveModelItem>, string)
Select CS by name from project CS list
Declaration
public static void SetLcsName(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| string | name |
SetRadStock(ComWrapper<ICamApiCylinderPrimitiveModelItem>, double)
Declaration
public static void SetRadStock(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| double | value |
SetWithHole(ComWrapper<ICamApiCylinderPrimitiveModelItem>, bool)
Declaration
public static void SetWithHole(this ComWrapper<ICamApiCylinderPrimitiveModelItem> cylPrimitiveCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCylinderPrimitiveModelItem> | cylPrimitiveCom | |
| bool | value |