Class LatheContourFacingModelItemHelper
Inheritance
LatheContourFacingModelItemHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class LatheContourFacingModelItemHelper
Methods
Declaration
public static ComWrapper<ICamApiLatheContourFacingModelItem> FirstFacingItem(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
Returns
Read the active cycle and cast it to the requested cycle interface (Profile,
OffsetLegacy, OffsetRoughing, Common, Leads, OverrideFeeds, ChipBreakingDwell).
Returns null when the cycle does not implement T — for
instance, asking for ICamApiLatheCycleProfile while OffsetRoughing is active.
Declaration
public static ComWrapper<T> GetActiveCycleAs<T>(this ComWrapper<ICamApiLatheContourFacingModelItem> 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<ICamApiLatheContourFacingModelItem> itemCom)
Parameters
Returns
Leads tab parameters (Approach, Engage, Retract).
Always valid regardless of active cycle type.
Declaration
public static ComWrapper<ICamApiLatheCycleLeads> GetLeads(this ComWrapper<ICamApiLatheContourFacingModelItem> itemCom)
Parameters
Returns
Override feeds parameters.
Always valid regardless of active cycle type.
Declaration
public static ComWrapper<ICamApiLatheCycleOverrideFeeds> GetOverrideFeeds(this ComWrapper<ICamApiLatheContourFacingModelItem> itemCom)
Parameters
Returns
Find the last ICamApiLatheContourFacingModelItem in a model former.
Useful after reload because the former typically also exposes a default/template
Facing item at index 0; user-added items follow.
Declaration
public static ComWrapper<ICamApiLatheContourFacingModelItem> LastFacingItem(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
Returns
Switch the active cycle. ActiveCycle is rebuilt to the new type with default values.
Declaration
public static void SetActiveCycle(this ComWrapper<ICamApiLatheContourFacingModelItem> itemCom, TLatheContourCycleType cycleType)
Parameters