CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICadApiBody

    A single 3D body in a CAD model — the unit of geometry kept in ICadApiModel.Parts. Mirrors GeCAD ICADBody: a connected collection of faces and edges (either a closed solid or an open shell) with its own local coordinate system. Bodies are produced by features in the feature tree (import, extrude, revolve, sweep, merge); fillets/drafts/offsets/deletes modify existing ones in place.

    Namespace: CADAPI.Body
    Assembly: CADAPI.Body.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("8C0FA9E2-7A6E-4E9B-9D3F-2D5E8C1A4B70")]
    public interface ICadApiBody

    Properties

    Caption

    Human-readable caption shown in the feature tree (e.g. "#Part_1").

    Declaration
    string Caption { get; }
    Property Value
    Type Description
    string

    EdgeCount

    Number of topology edges in this body.

    Declaration
    int EdgeCount { get; }
    Property Value
    Type Description
    int

    FaceCount

    Number of topology faces in this body.

    Declaration
    int FaceCount { get; }
    Property Value
    Type Description
    int

    Id

    Stable string handle of this body inside the model (e.g. "#Body(Imp1:0)"). Use this when later operations need to refer back to a specific body — captions can be renamed by the user.

    Declaration
    string Id { get; }
    Property Value
    Type Description
    string

    IsSolid

    True if this body is a closed solid; false for an open shell.

    Declaration
    bool IsSolid { get; }
    Property Value
    Type Description
    bool

    Methods

    EdgeId(int, out TResultStatus)

    Declaration
    string EdgeId(int Index, out TResultStatus ret)
    Parameters
    Type Name Description
    int Index
    TResultStatus ret
    Returns
    Type Description
    string

    FaceId(int, out TResultStatus)

    Declaration
    string FaceId(int Index, out TResultStatus ret)
    Parameters
    Type Name Description
    int Index
    TResultStatus ret
    Returns
    Type Description
    string

    GetBoxMax(out double, out double, out double, out TResultStatus)

    Declaration
    void GetBoxMax(out double X, out double Y, out double Z, out TResultStatus ret)
    Parameters
    Type Name Description
    double X
    double Y
    double Z
    TResultStatus ret

    GetBoxMin(out double, out double, out double, out TResultStatus)

    Declaration
    void GetBoxMin(out double X, out double Y, out double Z, out TResultStatus ret)
    Parameters
    Type Name Description
    double X
    double Y
    double Z
    TResultStatus ret
    In this article