2019 Table of Contents


Last updated March 12, 2019 by Tekla User Assistance tekla.documentation@trimble.com

Software version: 



Category : File Locations

Specifies a global and a local folder for recorded macrosaved series of actions that includes instructions for a program

Macros are located in the applications and components catalog. They are recorded or created manually and stored as .cs file in a folder defined with the advanced option XS_MACRO_DIRECTORY.

Macros can, for example, be used for creating drawings or reports.

Macros are sometimes used to run an application.

files. Macro files are usually language and environment dependent and will not run in any other environment or language. This advanced option is system-specific.

Use a semicolon (;) as a separator. Do not define more than two macro folders.

First define the global folder, and then the local folder, for example:

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

This advanced option is by default set to ..\ProgramData\Trimble\Tekla Structures\<version>\environments\common\macros.


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

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


The macro folder must contain subfolders modeling and drawings.

Quick feedback

The feedback you give here is not visible to other users. We use your comments to improve our content.
We use this to prevent automated spam submissions.
Content rating: 
Average page rating: 5 (1 vote)
Refresh page after voting to show updated result.