27.1.7.1 Creating a macro library
You can copy sample library file m2hmacro.ini from the Mif2Go distribution folder to the project folder, and add macro definitions to it there; or you can create, name, and locate your own macro library file:
; MacroFile = name of macro library file, ext .ini, path optional
; checked for macro section if no matching section found here first
MacroFile = path\to\mymacros.ini
Give your macro library file extension .ini, and either place it in the project folder or specify an absolute path to its location. It is a good idea to use the same location for macro library files for all your conversion projects.
If you do not specify a value for MacroFile, and you invoke a macro that is not defined in your project configuration file, Mif2Go looks in the project folder for a file named m2hmacro.ini.
End library with a non-macro section
When you create a macro library, put a non-macro dummy section at the end of the file; for example:
Otherwise, the last macro in the library might cause an extra character to be inserted in the output.
> 27 Working with Mif2Go macros > 27.1 Defining and invoking macros > 27.1.7 Including macro definitions in a library > 27.1.7.1 Creating a macro library
