Class MacroCommandsManagerHelper
Inheritance
MacroCommandsManagerHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class MacroCommandsManagerHelper
Methods
AddMachineState(ComWrapper<ICamIpcMacroCommandsManager>)
Capture the current machine selection and append it to the recording as macro command(s).
Declaration
public static void AddMachineState(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
AddRecognizeFeature(ComWrapper<ICamIpcMacroCommandsManager>)
Append a blank "recognize feature by type" step; the feature type and target item are chosen
later in the macro row (no 3D pick required at record time).
Declaration
public static void AddRecognizeFeature(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
AddStrategyState(ComWrapper<ICamIpcMacroCommandsManager>)
Capture the current operations strategy and append it to the recording as macro command(s).
Declaration
public static void AddStrategyState(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
AddWorkpieceState(ComWrapper<ICamIpcMacroCommandsManager>)
Capture the current workpiece primitive and append it to the recording as macro command(s).
Declaration
public static void AddWorkpieceState(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
CreateCommandData(ComWrapper<ICamIpcMacroCommandsManager>, TMacroCommandType)
Create an empty writable command bag for the given command type.
Declaration
public static ComWrapper<ICamIpcMacroCommandData> CreateCommandData(this ComWrapper<ICamIpcMacroCommandsManager> com, TMacroCommandType commandType)
Parameters
Returns
GetCommandSchema(ComWrapper<ICamIpcMacroCommandsManager>)
Schema service describing the field keys each command type expects (for CreateCommandData/Set*).
Declaration
public static ComWrapper<ICamIpcMacroCommandSchema> GetCommandSchema(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
Returns
IsStarted(ComWrapper<ICamIpcMacroCommandsManager>)
True while a recording session is active (between Start and Stop). Lets the agent query
the recording state instead of assuming it.
Declaration
public static bool IsStarted(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
Returns
RegisterCommand(ComWrapper<ICamIpcMacroCommandsManager>, ComWrapper<ICamIpcMacroCommandData>)
Record a command bag (built via CreateCommandData). Imitates a UI recording hook.
Declaration
public static void RegisterCommand(this ComWrapper<ICamIpcMacroCommandsManager> com, ComWrapper<ICamIpcMacroCommandData> data)
Parameters
Start(ComWrapper<ICamIpcMacroCommandsManager>)
Declaration
public static void Start(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters
Stop(ComWrapper<ICamIpcMacroCommandsManager>)
Declaration
public static void Stop(this ComWrapper<ICamIpcMacroCommandsManager> com)
Parameters