Customize print file names (old printing)
By default, Tekla Structures uses the drawing names as print file names. You can customize these file names using an advanced option indicating the drawing type, and entering switches defining the format of the print file name as a value.
To customize the filenames:
Example
The example below results in the filename
E_P1_PLATE_Revision=2.dxf
:
XS_DRAWING_PLOT_FILE_NAME_A=E_%NAME.%_%TITLE%%REV?_Revision=%%REV%.dxf
Switches for customizing print file names
Use the following switches when you want to customize the print file name format. If you are defining these in an .ini file, use double %%. Use single % in the Advanced options dialog box.
Switch |
Example of the result |
Description |
---|---|---|
|
P_1 |
Part, assembly, or cast unit position, using the filename format prefix_number. |
|
P-1 |
Part, assembly, or cast unit position, using the filename format prefix-number. |
|
P1 |
Part, assembly, or cast unit position, using the filename format prefixnumber. |
|
2 |
Drawing revision number, if Include revision mark to file name is checked in the Print Drawings dialog box. |
|
B |
Drawing revision mark, if Include revision mark to file name is checked in the Print Drawings dialog box. |
|
PLATE |
Drawing name from the drawing properties dialog box. |
|
Painted |
Value of a drawing user-defined attribute. The drawing user-defined attributes are defined in objects.inp. The actual values for the user-defined attributes are entered in the drawing-specific user-defined attributes dialog box. |
|
2 - Rev |
Adds
conditional prefixes. In this example, if |
|
Base plate |
You can use here template attributes that can be found in Template Editor. The actual values for these attributes are entered in the drawing properties dialog box. Examples:
|
The print output file name
switches %DRAWING_NAME%
and %NAME%
that should
produce an underscore in the print file name (P_1) do not work if XS_ASSEMBLY_POSITION_NUMBER_FORMAT_STRING
does not use a separator
between the values (for example, %ASSEMBLY_PREFIX%%ASSEMBLY_POS%
), or if XS_USE_ASSEMBLY_NUMBER_FOR
is set.
To make the switches work, do the following:
- If you want to use
XS_ASSEMBLY_POSITION_NUMBER_FORMAT_STRING
, use a dot (.) slash (/) or hyphen (-) between the values, for example,%ASSEMBLY_PREFIX%.%ASSEMBLY_POS%
, or similar. - Leave
XS_USE_ASSEMBLY_NUMBER_FOR
empty.