CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiApplication

    Instance of CAM application

    Namespace: CAMAPI.Application
    Assembly: CAMAPI.Application.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("79A78312-DA90-46E8-8418-C4E71BBD1627")]
    public interface ICamApiApplication

    Properties

    AttributesManager

    Object to manage custom user defined attributes and their libraries.

    Declaration
    ICamApiCustomAttributesManager AttributesManager { get; }
    Property Value
    Type Description
    ICamApiCustomAttributesManager

    Constants

    Constants of main application

    Declaration
    ICamApiConstants Constants { get; }
    Property Value
    Type Description
    ICamApiConstants

    ExecutablePath

    Path to executable file

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

    HotkeyManager

    Manager for plugin-registered global keyboard shortcuts. Lives at the application level so a global extension can register hotkeys during startup, before the main form exists.

    Declaration
    ICamApiHotkeyManager HotkeyManager { get; }
    Property Value
    Type Description
    ICamApiHotkeyManager

    LanguageCode

    Returns Windows Language Code Identifier (LCID) selected for the application

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

    LanguageName

    Returns the name of the language selected for the application

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

    LastActionIdleSeconds

    Seconds elapsed since the last raw user input (mouse click / key / wheel) in windows. Returns 0 if there was no input yet (e.g. headless run). Native modal dialogs (message boxes, file pickers) are not tracked.

    Declaration
    double LastActionIdleSeconds { get; }
    Property Value
    Type Description
    double

    LogFilePath

    Returns path to the log file name of CAM

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

    MachinesLibrary

    Manager over library of machines of CAM system

    Declaration
    ICamApiMachinesLibrary MachinesLibrary { get; }
    Property Value
    Type Description
    ICamApiMachinesLibrary

    MachiningToolsManager

    Manager over list of machining tools of CAM system

    Declaration
    ICamApiMachiningToolsManager MachiningToolsManager { get; }
    Property Value
    Type Description
    ICamApiMachiningToolsManager

    MacroManager

    Object to manage all macros inside CAM application

    Declaration
    ICamApiMacroManager MacroManager { get; }
    Property Value
    Type Description
    ICamApiMacroManager

    MainForm

    Main window handle

    Declaration
    ICamApiApplicationMainForm MainForm { get; }
    Property Value
    Type Description
    ICamApiApplicationMainForm

    MainWorkMode

    Work mode of application

    Declaration
    TMainWorkMode MainWorkMode { get; set; }
    Property Value
    Type Description
    TMainWorkMode

    PLMManager

    Object which works with PLM extensions

    Declaration
    IPLMManager PLMManager { get; }
    Property Value
    Type Description
    IPLMManager

    Paths

    Paths, used in CAM application

    Declaration
    ICamApiPaths Paths { get; }
    Property Value
    Type Description
    ICamApiPaths

    SmartHintManager

    Manager of smart hints: lets an extension supply the context help for the parameters of its own operations. Available before the main window of CAM application is created, so the hints can be loaded while the extension is starting up.

    Declaration
    ICamApiSmartHintManager SmartHintManager { get; }
    Property Value
    Type Description
    ICamApiSmartHintManager

    Started

    Current instance is ready to work. It may be not ready if in closing mode or in open process

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

    Theme

    Snapshot of currently active UI theme (palette, fonts, metrics). Read-only - plugins observe the theme, they do not switch it.

    Declaration
    ICamApiTheme Theme { get; }
    Property Value
    Type Description
    ICamApiTheme

    UserTechOperationList

    List of user operations available to be created in the current technologist

    Declaration
    ICamApiUserTechOperationList UserTechOperationList { get; }
    Property Value
    Type Description
    ICamApiUserTechOperationList

    UtilityManager

    Utility manager to run some utilities inside CAM application

    Declaration
    ICamApiUtilityManager UtilityManager { get; }
    Property Value
    Type Description
    ICamApiUtilityManager

    Methods

    AskCamAgent(string, bool, int, out TResultStatus)

    Declaration
    string AskCamAgent(string message, bool interruptOnError, int timeoutMs, out TResultStatus ret)
    Parameters
    Type Name Description
    string message
    bool interruptOnError
    int timeoutMs
    TResultStatus ret
    Returns
    Type Description
    string

    CreateNewProject(out TResultStatus)

    Declaration
    void CreateNewProject(out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TResultStatus ResultStatus

    ExportCurrentProject(string, bool, out TResultStatus)

    Declaration
    void ExportCurrentProject(string TargetFileName, bool Overwrite, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string TargetFileName
    bool Overwrite
    TResultStatus ResultStatus

    GetActiveProject(out TResultStatus)

    Declaration
    ICamApiProject GetActiveProject(out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TResultStatus ResultStatus
    Returns
    Type Description
    ICamApiProject

    GetExtensionManager(out TResultStatus)

    Declaration
    IExtensionManager GetExtensionManager(out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TResultStatus ResultStatus
    Returns
    Type Description
    IExtensionManager

    ImportToolsFromFile(IListString, string, out TResultStatus)

    Declaration
    IListString ImportToolsFromFile(IListString FileNames, string OperationID, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    IListString FileNames
    string OperationID
    TResultStatus ResultStatus
    Returns
    Type Description
    IListString

    ImportToolsFromPLM(string, IListString, string, string, out TResultStatus)

    Declaration
    IListString ImportToolsFromPLM(string ExtensionTypeId, IListString ItemIds, string ConnectionId, string OperationID, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string ExtensionTypeId
    IListString ItemIds
    string ConnectionId
    string OperationID
    TResultStatus ResultStatus
    Returns
    Type Description
    IListString

    OpenProject(string, bool, out TResultStatus)

    Declaration
    void OpenProject(string FileName, bool AddToReOpen, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string FileName
    bool AddToReOpen
    TResultStatus ResultStatus

    OpenProjectFromPLM(string, string, out TResultStatus)

    Declaration
    void OpenProjectFromPLM(string PLMItemId, string ConnectionId, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string PLMItemId
    string ConnectionId
    TResultStatus ResultStatus

    RegisterHandler(string, ICamApiEventHandler, IListString, out TResultStatus)

    Declaration
    void RegisterHandler(string HandlerIdent, ICamApiEventHandler Handler, IListString Events, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string HandlerIdent
    ICamApiEventHandler Handler
    IListString Events
    TResultStatus ResultStatus

    SaveCurrentProject(string, out TResultStatus)

    Declaration
    void SaveCurrentProject(string FileName, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string FileName
    TResultStatus ResultStatus

    SetActiveProjectMachine(ICamApiMachineInfo, out TResultStatus)

    Declaration
    void SetActiveProjectMachine(ICamApiMachineInfo MachineInfo, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiMachineInfo MachineInfo
    TResultStatus ResultStatus

    UnregisterHandler(string, out TResultStatus)

    Declaration
    void UnregisterHandler(string HandlerIdent, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string HandlerIdent
    TResultStatus ResultStatus
    In this article