XS_MACRO_DIRECTORY

Tekla Structures
Modified: 21 Sep 2023
2023
Tekla Structures

XS_​MACRO_​DIRECTORY

Specifies a global folder and one or more local folders for recorded macro files.

Category in Advanced options dialog box: File Locations

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.

First define the global folder, then the local folders. Use a semicolon (;) as the separator between paths.

For example:

set XS_MACRO_DIRECTORY=%XSDATADIR%environments\common\macros;%XSDATADIR%environments\uk\General\user-macros

By default, this advanced option is set to ..\ProgramData\Trimble\Tekla Structures\<version>\environments\common\macros.

Note:

Do not change the global folder. If necessary, you can change the local folders.

When you click Access advanced features in Applications & components , you can select whether to create a global or local macro by selecting New macro > Local or New macro > > Global. The Local option is only shown if you have specified a local folder.

Note:

The macro folder must contain the modeling and drawings subfolders.

Was this helpful?
Submit
Previous
Next