Class WeldSeamModelItemHelper
Helper methods for ICamApiWeldSeamModelItem.
Implemented by TWeldSeamModelItem — a weld seam item on TWeldingOp5D / TWeldingOp6D
(added via ICamApiModelFormer.AddSupportedItemsSelected("WeldSeam", ...)).
The same item also exposes ICamApiCurve5DModelItem (Stock, Alternate*,
curve geometry, tool vectors, feed points) and ICamApiProjectCurveModelItem
(ProjectMethod, Is5dCurve) via QueryInterface.
This helper adds welding-specific access: the per-item Multipass override.
Inheritance
WeldSeamModelItemHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class WeldSeamModelItemHelper
Methods
Append a new pass to the list. Throws on failure.
Declaration
public static void AddPass(this ComWrapper<ICamApiWeldSeamModelItem> com, double axialOffset, double sideOffset, double leanOffset)
Parameters
QueryInterface on a generic ICamApiModelItem. Returns non-null only
for items of type TWeldSeamModelItem (WeldSeam button on welding formers).
Declaration
public static ComWrapper<ICamApiWeldSeamModelItem> AsWeldSeamItem(this ComWrapper<ICamApiModelItem> itemCom)
Parameters
Returns
Remove all passes. Throws on failure.
Declaration
public static void ClearPasses(this ComWrapper<ICamApiWeldSeamModelItem> com)
Parameters
Remove pass #index. Throws on failure.
Declaration
public static void DeletePass(this ComWrapper<ICamApiWeldSeamModelItem> com, int index)
Parameters
Read pass #index. Throws if the server reports a failure via TResultStatus
(out-of-range index, missing Multipass XML).
AxialOffset/SideOffset are Linear (project units); LeanOffset is Angular (degrees).
Declaration
public static (double AxialOffset, double SideOffset, double LeanOffset) GetPass(this ComWrapper<ICamApiWeldSeamModelItem> com, int index)
Parameters
Returns
Whether the per-item multipass override is active. When false, the item
inherits the operation-wide Multipass setting.
Declaration
public static bool MultipassOverrideEnabled(this ComWrapper<ICamApiWeldSeamModelItem> com)
Parameters
Returns
Number of passes in the per-item override list (regardless of Enabled flag).
Declaration
public static int PassesCount(this ComWrapper<ICamApiWeldSeamModelItem> com)
Parameters
Returns
Declaration
public static void SetMultipassOverrideEnabled(this ComWrapper<ICamApiWeldSeamModelItem> com, bool value)
Parameters
Overwrite pass #index. Throws on failure.
Declaration
public static void SetPass(this ComWrapper<ICamApiWeldSeamModelItem> com, int index, double axialOffset, double sideOffset, double leanOffset)
Parameters