Class ModelFormerWithSolidHelper
Helper methods for ICamApiModelFormerWithSolid.
Throwing wrappers hide the raw TResultStatus out-parameter; consumers
(scenarios, generated playback code) catch validation failures via try/catch on Exception.
Inheritance
ModelFormerWithSolidHelper
Assembly: CAMAPI.DotnetHelper.dll
public static class ModelFormerWithSolidHelper
Methods
Sew selected faces/meshes into a single solid and add it to the former.
Defaults match the workpiece-setup toolbar "Faces" quick-add path: tolerance 0.1, no stock, no bottom clip.
Throws on validation failure (NaN/Infinity, non-positive SewTolerance, BottomLevel out of geometry Z range while UseBottomLevel=true).
Declaration
public static ComWrapper<ICamApiListModelItem> AddSolidSelected(this ComWrapper<ICamApiModelFormerWithSolid> com, double sewTolerance = 0.1, double stock = 0, double bottomLevel = 0, bool useBottomLevel = false)
Parameters
Returns
Sew selected faces/meshes into a single solid and add it to the former.
Defaults match the workpiece-setup toolbar "Faces" quick-add path: tolerance 0.1, no stock, no bottom clip.
Throws on validation failure (NaN/Infinity, non-positive SewTolerance, BottomLevel out of geometry Z range while UseBottomLevel=true).
Declaration
public static ICamApiListModelItem AddSolidSelected(this ICamApiModelFormerWithSolid former, double sewTolerance, double stock, double bottomLevel, bool useBottomLevel)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiModelFormerWithSolid> AsWithSolid(this ComWrapper<ICamApiModelFormer> mfCom)
Parameters
Returns
Variant that returns the raw TResultStatus for callers that need to inspect the error code.
Declaration
public static ComWrapper<ICamApiListModelItem> TryAddSolidSelected(this ComWrapper<ICamApiModelFormerWithSolid> com, double sewTolerance, double stock, double bottomLevel, bool useBottomLevel, out TResultStatus status)
Parameters
Returns