Class Curve2DModelItemHelper
Helper methods for ICamApiCurve2DModelItem
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class Curve2DModelItemHelper
Methods
Compensated(ComWrapper<ICamApiCurve2DModelItem>)
Tool radius compensation is applied to this curve
Declaration
public static bool Compensated(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| bool |
Compensation(ComWrapper<ICamApiCurve2DModelItem>)
Legacy alias of Compensated(ComWrapper<ICamApiCurve2DModelItem>). Reads the same Pascal field
(fCompensated) but the getter goes through Compens, which
can return a different value after SaveCurrentProject due to XMLProp
event ordering. Use Compensated(ComWrapper<ICamApiCurve2DModelItem>) as the canonical contract.
Declaration
[Obsolete("Use Compensated — it reads the same backing field directly. Compensation getter may return stale value after Save due to XMLProp event ordering. Kept for ABI compat.")]
public static bool Compensation(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| bool |
IsInverted(ComWrapper<ICamApiCurve2DModelItem>)
Curve direction is inverted
Declaration
public static bool IsInverted(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| bool |
IsLeft(ComWrapper<ICamApiCurve2DModelItem>)
Machining side of 2D curve
Declaration
public static bool IsLeft(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| bool |
SetCompensated(ComWrapper<ICamApiCurve2DModelItem>, bool)
Tool radius compensation is applied to this curve
Declaration
public static void SetCompensated(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| bool | value |
SetCompensation(ComWrapper<ICamApiCurve2DModelItem>, bool)
Legacy alias of SetCompensated(ComWrapper<ICamApiCurve2DModelItem>, bool). Internally delegates to the
same Pascal field via SetCompens → Compensated := value. Use
SetCompensated(ComWrapper<ICamApiCurve2DModelItem>, bool) directly to avoid the alias confusion.
Declaration
[Obsolete("Use SetCompensated — same backing field, but Compensation setter goes through SetCompens which adds an extra layer. Kept for ABI compat.")]
public static void SetCompensation(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| bool | value |
SetIsInverted(ComWrapper<ICamApiCurve2DModelItem>, bool)
Curve direction is inverted
Declaration
public static void SetIsInverted(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| bool | value |
SetIsLeft(ComWrapper<ICamApiCurve2DModelItem>, bool)
Machining side of 2D curve
Declaration
public static void SetIsLeft(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| bool | value |
SetStock(ComWrapper<ICamApiCurve2DModelItem>, double)
Declaration
public static void SetStock(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| double | value |
SetWithReturn(ComWrapper<ICamApiCurve2DModelItem>, bool)
Use lead-in and lead-out moves for 2D curve
Declaration
public static void SetWithReturn(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom | |
| bool | value |
Stock(ComWrapper<ICamApiCurve2DModelItem>)
Declaration
public static double Stock(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| double |
WithReturn(ComWrapper<ICamApiCurve2DModelItem>)
Use lead-in and lead-out moves for 2D curve
Declaration
public static bool WithReturn(this ComWrapper<ICamApiCurve2DModelItem> curve2DModelItemCom)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiCurve2DModelItem> | curve2DModelItemCom |
Returns
| Type | Description |
|---|---|
| bool |