Class MacroManagerHelper
Helper methods for ICamApiMacroManager
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class MacroManagerHelper
Methods
Execute(ComWrapper<ICamApiMacroManager>, string, string)
Execute macro by id
Declaration
public static void Execute(this ComWrapper<ICamApiMacroManager> macroManagerCom, string id, string paramsJson = "")
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMacroManager> | macroManagerCom | |
| string | id | |
| string | paramsJson |
ExportMacro(ComWrapper<ICamApiMacroManager>, string, string)
Export the macro with the given id into a self-contained .dmcr archive at targetPath.
Declaration
public static void ExportMacro(this ComWrapper<ICamApiMacroManager> macroManagerCom, string id, string targetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMacroManager> | macroManagerCom | |
| string | id | |
| string | targetPath |
ImportMacro(ComWrapper<ICamApiMacroManager>, string)
Import a macro from a .dmcr archive at sourcePath (overwrites any macro with the
same id). Returns the registered macro.
Declaration
public static ComWrapper<ICamApiMacroInfo> ImportMacro(this ComWrapper<ICamApiMacroManager> macroManagerCom, string sourcePath)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMacroManager> | macroManagerCom | |
| string | sourcePath |
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiMacroInfo> |
NotifyMacroStep(ComWrapper<ICamApiMacroManager>, int)
Notify macro manager that playback reached the given step index (0-based)
Declaration
public static void NotifyMacroStep(this ComWrapper<ICamApiMacroManager> macroManagerCom, int stepIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiMacroManager> | macroManagerCom | |
| int | stepIndex |