Page 1 of 1

macro commands

Posted: 10 Dec 2016, 17:12
by yyy898
Hi,
what is the best way to use api.avolites.com ?
there is a list of all macro commands but if i need a macro to for example exchange a fixture which is according to the website:
Void ExchangeFixtures(System.Collections.Generic.List`1[Avolites.Titan.Controllers.HandleReference], System.String, System.String, System.String, Boolean, Boolean, Boolean)

how do i use this in the <step></step of the macro i am making ?

Re: macro commands

Posted: 20 Dec 2016, 16:45
by Gregory
The ExchangeFixtures documentation was missing some of the information about the parameters which I have now corrected. The line you copied shows you the type for each parameter, unfortunately in this case the first parameter is a list of handle references and I don't know of any way you can create this in a macro.

To give you an idea this is how it would appear in a macro:

Code: Select all

<step>Fixtures.ExchangeFixtures(Fixtures.ConflictingHandles, "Robe", "ColorSpot 1200 AT", "Mode 2, 32 DMX", true, false, false)</step>

The property Fixtures.ConflictingHandles is valid however this is only set when you attempt to patch over the top of existing fixtures in the Patch menu.

Re: macro commands

Posted: 27 Dec 2016, 19:18
by yyy898
ok, so exchanging a fixture with a macro can't be done, how about importing pallets from another showfile using this macro's:

Void ImportShowInformation(Avolites.Acw.Titan.Show.AcwPathDeviceKey)
Void TransferHandles(System.String, Int32)

how do i do that ?