User Tools

Site Tools



Macro - Export Macro

by: Gregory Haynes, Jan 2016
description: exports macro no.1 as file in the usermacro location



<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
  <!-- Macro to export another macro. Gregory Haynes 13/02/2016 -->
  <macro id="Avolites.Macros.ExportMacro" name="Export Macro Number 1">
    <description>Exports the macro with user number 1.</description>


This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

  • <step>UserMacros.SetCurrentMacroFromUserNumber(1)</step> makes the macro with the usernumer 1 current, i.e. selects it. Change the number if you want to export another macro.
  • <step>UserMacros.Export(UserMacros.CurrentMacroId)</step> actually exports the previously selected macro - all the file handling is done in this function

See also for hints on exporting more macros.

How to use it

  1. create another macro and give this macro usernumber 1
  2. find the Export macro in the show library or via <Macro> [View All] and execute (click) it
  3. open Windows explorer and navigate to your usermacro location
  4. there you'll find a file named Macro1.xml - this is the exported macro


icke_siegen, 2017/10/15 10:52

Successfully tried this various times myself.

You could leave a comment if you were logged in.
macros/example/exportmacro.txt · Last modified: 2019/04/28 00:19 by sideshowbond