Hello!

Did you know that logged in users can see a lot more content?

Create startup shortcuts with customized initializations

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

Software version: 
2019

Create startup shortcuts with customized initializations

Create startup shortcuts with customized initializations

You can use shortcuts to start teklastructures.exe with customized initializations. You can use this functionality to create shortcuts for different purposes, for example, to have customized setup files depending on the client you are working for in a project. The Tekla Structures installation automatically creates shortcuts for the selected environments.

Note:

We recommend that only administrators create the customization and the necessary shortcuts. Otherwise, your settings may differ from the settings defined for your firm, or for the particular project you are working for.

Create a startup shortcut with customized initialization

  1. Open the user.ini file using any standard text editor.
  2. Save the file with a new name, for example, customer.ini or project.ini.
  3. Modify the file by adding the required settings.
  4. Save the modified initialization filetext file that contains user interface definitions, start-up parameters, default settings, or advanced options

    Initialization files are used when starting Tekla Structures and they can contain system-specific and user-specific advanced options that are used to configure Tekla Structures for different standards and the user’s individual style of working.

    Initialization files have the extension .ini.

    .
  5. Open the Windows Start menu and select All Programs > Tekla Structures <version> .
  6. Right-click Tekla Structures <version> and select Copy.
  7. Paste the shortcut to your desktop.
  8. Select the shortcut, right-click and select Properties.
  9. Modify the Target of the shortcut by adding the required project initialization information to it.

    First enter the path to the current teklastructures.exe , then the desired parameters.

    Use the quotation marks (") in the path to avoid possible problems if the path contains spaces. If you have installed Tekla Structures to a path that does not contain spaces, there will be no problems even if you remove the quotations marks, for example, C:\TeklaStructures\. If you have installed Tekla Structures to a path that contains spaces, the quotation marks are needed, for example, C:\Program Files\Tekla Structures\.

    The maximum length of a shortcut is 256 characters. If you have problems with the length, you can call all other necessary initialization files from your customized initialization file instead of adding them to the shortcut.

  10. To override the settings defined in the shortcuts, use the parameter -i <initialization_file> in the user.ini and option.ini files.

Available parameters in shortcuts

You can use the following parameters in shortcuts:

Parameter Description
-I <ini_file_path>

The given .ini file is loaded before the environment .ini files. This parameter can be specified multiple times.

This parameter could be used to bypass the Choose Setup dialog (the login dialog).

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe" -I
"C:\ProgramData\Trimble\Tekla Structures\2019.0\Environments\uk\Bypass.ini"
-i <ini_file_path>

The given .ini file is loaded after the role .ini files. This parameter can be specified multiple times.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe" -i
"C:\TeklaStructures\MySettings.ini"
To open an existing model

<model_path>

The given model is opened after startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe"
"C:\TeklaStructuresModels\My model"
To open an existing, autosaved model

<model_path> /autosaved

The given autosaved model is opened after startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe"
"C:\TeklaStructuresModels\My model" /autosaved
To create a new model without a model template

/create:<model_path>

A new model is created after startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe"
/create:"C:\TeklaStructuresModels\My model"
To create a new model using a model template

/create:<model_path> /modelTemplate:<template_name>

A new model using a model template is created after startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe"
/create:"C:\TeklaStructuresModels\My model" /modelTemplate:"Cast-in-Place"
To create a new multi-user model

/create:<model_path> /server:<server_name>

A new multi-user model is created after startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe"
/create:"C:\TeklaStructuresModels\My model" /server:"my-server:1234"
-m <macro_file_path>

The given macro is executed during startup.

Example:

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe" -m
"C:\ProgramData\Trimble\Tekla Structures\2019.0\Environments\UK\General\user-macros\modeling\Swap Handles.cs"

These parameters can be used in combination, and they automatically bypass the Tekla Structures - Choose setup dialog box, open a model and run a 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.

, for example.

"C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe" -I
"C:\ProgramData\Trimble\Tekla Structures\2019.0\Environments\uk\Bypass.ini"
"D:\Models\_TS2019\My model" -m "c:ProgramData\Trimble\Tekla Structures\2019.0\Environments\UK\General\user-macros\modeling\Swap Handles.cs"

Example of an initialization file

Below is an example of a customized project initialization file that calls other initialization files.

MyProject.ini
//The project is based on the default UK settings
call C:\ProgramData\Trimble\Tekla Structures\2019.0\Environments\uk\env_UK.ini
//..but our company policy requires these changes
call c:\CompanySettings\OurPolicy.ini
//..and the fabricator requires something
call c:\Fabricators\Fabricator1.ini
//..and then we let users to make some changes (color etc.)
call c:\Users\user_%USERNAME%.ini

The project shortcut for this initialization file:

C:\Program Files\Tekla Structures\2019.0\nt\bin\TeklaStructures.exe -i \\MyServer\MyProject\MyProject.ini \\MyServer\MyProject\MyModel\MyModel.db1

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: 
No votes yet