XS_MACRO_DIRECTORY
Category in Advanced options dialog: File locations
This advanced option specifies the folder locations for macro files. Macro files are usually specific to the language and environment, and do not run in any other environment or language. This advanced option is system-specific.
By default, this advanced option is set to ..\ProgramData\Trimble\Tekla Structures\<version>\environments\common\macros. You can also specify one or more other locations, for example, when company or project-specific folders are needed for storing macros.
In the advanced option, the \common\macros folder should be the first folder. Use a semicolon (;) as the separator between folder paths.
For example:
set XS_MACRO_DIRECTORY=%XSDATADIR%environments\common\macros;%XSDATADIR%environments\uk\General\user-macros
We recommend that you do not change the \common\macros folder.
If you want to create your own macros, go to the Applications & components catalog, click Access advanced features, and select Record macro or New macro. The recorded macros and macro files are saved under the model folder, in the \macros\drawings or \macros\modeling folder depending on the mode (drawing or modeling) you are using while creating the macros. Tekla Structures creates the \macros\drawings and \macros\modeling folders automatically.