Class CommonTurningModelItemHelper
Inheritance
CommonTurningModelItemHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class CommonTurningModelItemHelper
Methods
Declaration
public static ComWrapper<ICamApiCommonTurningModelItem> FirstTurningItem(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
Returns
Read the active cycle and cast it to the requested cycle interface (Profile,
OffsetRoughing, RoughingAdvanced, Roughing, Zigzag, Common, Leads, OverrideFeeds).
Returns null when the active cycle does not implement T.
Declaration
public static ComWrapper<T> GetActiveCycleAs<T>(this ComWrapper<ICamApiCommonTurningModelItem> itemCom) where T : class
Parameters
Returns
Type Parameters
Common tab parameters (MachiningSide, RoundingRadius, ToolAngles, etc.).
Always valid regardless of active cycle type.
Declaration
public static ComWrapper<ICamApiLatheCycleCommon> GetCommon(this ComWrapper<ICamApiCommonTurningModelItem> itemCom)
Parameters
Returns
Leads tab parameters (Approach, Engage, Retract).
Always valid regardless of active cycle type.
Declaration
public static ComWrapper<ICamApiLatheCycleLeads> GetLeads(this ComWrapper<ICamApiCommonTurningModelItem> itemCom)
Parameters
Returns
Override feeds parameters.
Always valid regardless of active cycle type.
Declaration
public static ComWrapper<ICamApiLatheCycleOverrideFeeds> GetOverrideFeeds(this ComWrapper<ICamApiCommonTurningModelItem> itemCom)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiCommonTurningModelItem> LastTurningItem(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
Returns
Switch the active cycle. ActiveCycle is rebuilt to the new type with default values.
Accepts: lcctProfile, lcctOffsetLegacy, lcctOffsetRoughing, lcctRoughingAdvanced,
lcctRoughing, lcctZigzag.
Declaration
public static void SetActiveCycle(this ComWrapper<ICamApiCommonTurningModelItem> itemCom, TLatheContourCycleType cycleType)
Parameters