Class SolidModelItemHelper
Helpers for ICamApiSolidModelItem — typed access to all 4 editable TSolidItem
properties (Stock + SewTolerance/BottomLevel/UseBottomLevel). Stock mirrors the inherited
TFacesItem.Stock so callers don't need to QI between Face and Solid interfaces.
Each setter has two flavors:
SetX(value) — throws when validation fails (NaN/Infinity, non-positive SewTolerance,
or BottomLevel out of geometry Z range while UseBottomLevel is true).
TrySetX(value, out status) — returns TResultStatus instead of throwing.
Two binding surfaces are exposed: extension methods on the raw ICamApiSolidModelItem
(for use inside ComWrapper.Invoke after an is-cast) and on
ComWrapper<T> (for ordinary scenario code).
Inheritance
SolidModelItemHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class SolidModelItemHelper
Methods
Z-level used as the bottom of the solid (only effective when UseBottomLevel = true).
Declaration
public static double GetBottomLevel(this ComWrapper<ICamApiSolidModelItem> com)
Parameters
Returns
Tolerance used when sewing the selected faces into a solid.
Declaration
public static double GetSewTolerance(this ComWrapper<ICamApiSolidModelItem> com)
Parameters
Returns
Machining stock offset (inherited from TFacesItem; mirror of ICamApiFaceModelItem.Stock).
Declaration
public static double GetStock(this ComWrapper<ICamApiSolidModelItem> com)
Parameters
Returns
When true, the solid is closed at BottomLevel; when false, the natural bottom of the faces is used.
Declaration
public static bool GetUseBottomLevel(this ComWrapper<ICamApiSolidModelItem> com)
Parameters
Returns
Z-level used as the bottom of the solid; only effective when UseBottomLevel = true.
Declaration
public static void SetBottomLevel(this ComWrapper<ICamApiSolidModelItem> com, double value)
Parameters
Z-level used as the bottom of the solid; only effective when UseBottomLevel = true.
Declaration
public static void SetBottomLevel(this ICamApiSolidModelItem solid, double value)
Parameters
Tolerance used when sewing selected faces into a solid.
Declaration
public static void SetSewTolerance(this ComWrapper<ICamApiSolidModelItem> com, double value)
Parameters
Tolerance used when sewing selected faces into a solid.
Declaration
public static void SetSewTolerance(this ICamApiSolidModelItem solid, double value)
Parameters
Machining stock offset (mirror of inherited TFacesItem.Stock).
Declaration
public static void SetStock(this ComWrapper<ICamApiSolidModelItem> com, double value)
Parameters
Machining stock offset (mirror of inherited TFacesItem.Stock).
Declaration
public static void SetStock(this ICamApiSolidModelItem solid, double value)
Parameters
When true, the solid is closed at BottomLevel; when false, the natural bottom of the faces is used.
Declaration
public static void SetUseBottomLevel(this ComWrapper<ICamApiSolidModelItem> com, bool value)
Parameters
When true, the solid is closed at BottomLevel; when false, the natural bottom of the faces is used.
Declaration
public static void SetUseBottomLevel(this ICamApiSolidModelItem solid, bool value)
Parameters
Z-level used as the bottom of the solid; only effective when UseBottomLevel = true.
Declaration
public static void TrySetBottomLevel(this ComWrapper<ICamApiSolidModelItem> com, double value, out TResultStatus status)
Parameters
Tolerance used when sewing selected faces into a solid.
Declaration
public static void TrySetSewTolerance(this ComWrapper<ICamApiSolidModelItem> com, double value, out TResultStatus status)
Parameters
Machining stock offset (mirror of inherited TFacesItem.Stock).
Declaration
public static void TrySetStock(this ComWrapper<ICamApiSolidModelItem> com, double value, out TResultStatus status)
Parameters
When true, the solid is closed at BottomLevel; when false, the natural bottom of the faces is used.
Declaration
public static void TrySetUseBottomLevel(this ComWrapper<ICamApiSolidModelItem> com, bool value, out TResultStatus status)
Parameters