Interface ICamApiMacroObject
Implemented by model objects (e.g. JA model items) that know how to record themselves into a macro. Capture-side does QI to this interface, gets the JSON, and feeds it into the recording pipeline — no per-type dispatch in MacroManager. JSON format: array of command bags. Each element is a flat object where "type" is the TMacroCommandType ordinal (integer) and the remaining keys are the fields read by ICamApiMacroCommandData.GetStr/GetInt/GetFloat/GetBool. Example: [ {"type": 3, "FullName": ""}, {"type": 3, "FullName": "Group1\Face1"}, {"type": 1, "ItemType": 0}, {"type": 20, "ItemCaption": "Group1\Face1", "Stock": 0.1} ]
Namespace: CAMAPI.Macros
Assembly: CAMAPI.Macros.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("7D8C5E2A-3F4B-4691-8A5D-9B2C4F6E1D3A")]
public interface ICamApiMacroObject
Methods
GetRecordInfo()
Return a JSON array describing the commands needed to recreate this object at replay.
Declaration
string GetRecordInfo()
Returns
| Type | Description |
|---|---|
| string |