Class ApplicationHelper
Inheritance
ApplicationHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class ApplicationHelper
Methods
AttributesManager(ComWrapper<ICamApiApplication>)
Object to manage custom user defined attributes and their libraries
Declaration
public static ComWrapper<ICamApiCustomAttributesManager> AttributesManager(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
ExecutablePath(ComWrapper<ICamApiApplication>)
Declaration
public static string ExecutablePath(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
ExportCurrentProject(ComWrapper<ICamApiApplication>, string, bool)
Export current active project with all snapshots to target file
Declaration
public static void ExportCurrentProject(this ComWrapper<ICamApiApplication> appCom, string targetFileName, bool overwrite)
Parameters
GetActiveProject(ComWrapper<ICamApiApplication>)
Active project of instance (can be null if no active project)
Declaration
public static ComWrapper<ICamApiProject> GetActiveProject(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
GetExtensionManager(ComWrapper<ICamApiApplication>)
Instance of extension manager
Declaration
public static ComWrapper<IExtensionManager> GetExtensionManager(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
LanguageCode(ComWrapper<ICamApiApplication>)
Windows Language Code Identifier (LCID) selected for the application
Declaration
public static int LanguageCode(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
LanguageName(ComWrapper<ICamApiApplication>)
Name of the language selected for the application
Declaration
public static string LanguageName(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
LogFilePath(ComWrapper<ICamApiApplication>)
Path to the log file of CAM
Declaration
public static string LogFilePath(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
MachinesLibrary(ComWrapper<ICamApiApplication>)
Manager over library of machines of CAM system
Declaration
public static ComWrapper<ICamApiMachinesLibrary> MachinesLibrary(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
Manager over list of machining tools of CAM system
Declaration
public static ComWrapper<ICamApiMachiningToolsManager> MachiningToolsManager(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
MainForm(ComWrapper<ICamApiApplication>)
Declaration
public static ComWrapper<ICamApiApplicationMainForm> MainForm(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
MainWorkMode(ComWrapper<ICamApiApplication>)
Declaration
public static TMainWorkMode MainWorkMode(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
OpenProject(ComWrapper<ICamApiApplication>, string, bool)
Close current project without saving and open new one in instance of active project
Declaration
public static void OpenProject(this ComWrapper<ICamApiApplication> appCom, string fileName, bool addToReOpen)
Parameters
OpenProjectFromPLM(ComWrapper<ICamApiApplication>, string, string)
Close current project without saving and open one from PLM system in instance of active project
Declaration
public static void OpenProjectFromPLM(this ComWrapper<ICamApiApplication> appCom, string plmItemId, string connectionId)
Parameters
PLMManager(ComWrapper<ICamApiApplication>)
Object which works with PLM extensions
Declaration
public static ComWrapper<IPLMManager> PLMManager(this ComWrapper<ICamApiApplication> appCom)
Parameters
Returns
SaveCurrentProject(ComWrapper<ICamApiApplication>, string)
Save current active project (empty FileName rewrites current file)
Declaration
public static void SaveCurrentProject(this ComWrapper<ICamApiApplication> appCom, string fileName)
Parameters
SetActiveProjectMachine(ComWrapper<ICamApiApplication>, ComWrapper<ICamApiMachineInfo>)
Set machine of current active project
Declaration
public static void SetActiveProjectMachine(this ComWrapper<ICamApiApplication> appCom, ComWrapper<ICamApiMachineInfo> machineInfo)
Parameters
SetMainWorkMode(ComWrapper<ICamApiApplication>, TMainWorkMode)
Set work mode of application
Declaration
public static void SetMainWorkMode(this ComWrapper<ICamApiApplication> appCom, TMainWorkMode value)
Parameters