XS_MACRO_DIRECTORY

Tekla Structures
Modified: 7 Mar 2025
2025
Tekla Structures

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 another location, for example, when a company or project-specific folder is needed for storing macros. Note that this advanced option accepts a maximum of 2 folders.

In the advanced option, the \common\macros folder should be the first folder. Use a semicolon (;) as the separator between the 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.

Was this helpful?
Previous
Next