CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiModelFormerWithFixtures

    Model former mixin for mftFixtures (TFixturesFormer). Provides factory methods to add common fixture component types. Each method creates the standard component sub-tree and returns its root connector item.

    Namespace: CAMAPI.ModelFormerTypes
    Assembly: CAMAPI.ModelFormerTypes.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("7E5FA8B9-C0D1-4234-E5F6-A7B8C9D0E1F2")]
    public interface ICamApiModelFormerWithFixtures

    Properties

    LibraryComponentCount

    Number of ready-made fixture components available in the fixtures library

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

    LibraryComponentFile[int]

    Declaration
    string LibraryComponentFile[int Index] { get; }
    Parameters
    Type Name Description
    int Index
    Property Value
    Type Description
    string

    Methods

    AddChuck()

    Add a chuck (spindle clamping device) with body and jaw axes

    Declaration
    ICamApiFixtureConnectorItem AddChuck()
    Returns
    Type Description
    ICamApiFixtureConnectorItem

    AddClamp()

    Add a clamp with a body axis

    Declaration
    ICamApiFixtureConnectorItem AddClamp()
    Returns
    Type Description
    ICamApiFixtureConnectorItem

    AddFacesSelected()

    Add the currently selected geometry faces to the fixtures tree, mirroring the "Add faces" button: uses the current fixture selection or auto-creates a node. Returns the added face items.

    Declaration
    ICamApiListModelItem AddFacesSelected()
    Returns
    Type Description
    ICamApiListModelItem

    AddNode()

    Add a simple fixed node

    Declaration
    ICamApiFixtureNodeItem AddNode()
    Returns
    Type Description
    ICamApiFixtureNodeItem

    AddVise()

    Add a vise with body and jaw axes

    Declaration
    ICamApiFixtureConnectorItem AddVise()
    Returns
    Type Description
    ICamApiFixtureConnectorItem

    DeleteItemByCaption(string)

    Delete the first fixture item whose Caption matches, mirroring the "Delete" button / context menu on the Fixtures tab. Returns true if an item was found and removed.

    Declaration
    bool DeleteItemByCaption(string Caption)
    Parameters
    Type Name Description
    string Caption
    Returns
    Type Description
    bool

    FindConnector(string)

    Find a connector item by its caption; returns nil if not found

    Declaration
    ICamApiFixtureConnectorItem FindConnector(string Caption)
    Parameters
    Type Name Description
    string Caption
    Returns
    Type Description
    ICamApiFixtureConnectorItem

    ImportComponentFromFile(string)

    Import a ready-made fixture component from a .mcp package — the same action as picking an item in the fixtures library. Builds the whole component sub-tree (connector, component, body and jaw axes with their captions, axis directions and travel limits) from the package and loads its geometry into a hidden "Fixture model" folder of the geometry tree. FileName is either a full path or a file name resolved against the fixtures library folder. Returns the created root connector item, or nil if the package was not found.

    Declaration
    ICamApiFixtureConnectorItem ImportComponentFromFile(string FileName)
    Parameters
    Type Name Description
    string FileName
    Returns
    Type Description
    ICamApiFixtureConnectorItem
    In this article