Goal and description
This extension allows the creation of various types of codes in drawings and lists.
Back to top
Note: this extension replaces previous Qr Code and Datamatrix developed only for one type of code.
Tekla Structures 2017i and above
.NET Framework version: 4.5.1
To install the application:
If Tekla Structures is not started:
Download the appropriate TSEP (Tekla Structures Extension Package) file from Tekla Warehouse
Double-click on the .tsep file.
In Tekla Structures Extension Manager, select the versions of Tekla Structures for which you want to install the application
Click on "Import".
Copy the .tsep file under .\TeklaStructures\[version]\Extensions\To be installed
Start Tekla Structures.
If Tekla Structures is started:
Download the appropriate TSEP (Tekla Structures Extension Package) file from Tekla Warehouse.
Click on the button menu in the Application & Components side panel and select Extension Manager.
Click on Import.
Select the .tsep file and click Open.
Restart Tekla Structures to complete the installation.
Using the application:
Displaying a code in drawings:
Add the supplied templates to your drawing arrangements.
12 templates are available (3 per code type):
For assembly drawings: Barcode_Aztec_A.TPL, Barcode_Code128_A.TPL, Barcode_DataMatrix_A.TPL, Barcode_QrCode_A.TPL
For workshop drawings: Barcode_Aztec_W.TPL, Barcode_Code128_W.TPL, Barcode_DataMatrix_W.TPL, Barcode_QrCode_A.TPL
For cast unit drawings: Barcode_Aztec_C.TPL, Barcode_Code128_C.TPL, Barcode_DataMatrix_C.TPL, Barcode_QrCode_A.TPL
During installation, these templates are copied to the following folders:
You can copy these templates to the model directory or to your configuration directory (XS_FIRM).
Displaying a code in lists:
Codes can only be generated in .pdf.rpt templates (using a graphical template) or in .xls.rpt templates.
Two report templates 0_Assembly_List_xxxxx_Codes.xls.rpt and 0_Expedition_List_xxxxx_Codes.pdf.rpt are available for each code (xxxx=128, Aztec, Matrix or Qr). These templates are stored in the appropriate directories of common, france, usmet and usimp environments. You can copy these templates to the model directory or to your configuration directory (XS_FIRM).
The .xls.rpt lists use a template with a particular text format allowing to create an html format file recognized with Excel. If you want to insert a code in your custom report .xls.rpt, you can copy the value fields below into your template:
Back to top
Example : QRCODE (same definition for CODE128, AZTEC and DATAMATRIX)
The green value field uses CUSTOM.QRCODE _A attribute. It creates the picture of the Qr Code.
QRCODE _A.TPL for assembly
QRCODE _W.TPL for single
QRCODE _C.TPL for cast unit
The red value field calls up the previously created picture.
Setting code content
4 files are installed in the system directory of the common environment. They are used to manage the content of the codes.
Barcode_A.dat define the code content for assembly drawings
Barcode_W.dat define the code content for workshop drawings
Barcode_C.dat define the code content for cast unit drawings
Barcode_Layout.config manages the order of concatenation of fields
Only lines that are not empty or do not start with // are read.
In this example only lines 22 to 24 are read. Each line is defined with 5 values separated by a tab (so 4 tabs in a line).
1st value is the attribute you want to display from the template editor (ASSEMBLY_POS, PROJECT.NAME, etc...).
2nd value is the data type (FLOAT for a number with decimal, INTEGER for an integer, CHARACTER for a string or DATE for a date).
3rd value is the number of decimal places if FLOAT is chosen, or the date format if DATE is chosen (mm.dd.yyyy for example).
4th value is a factor. It allows you to change the unit. The default value is 1.
5th value is the separator between the different values.
If the last line is of type CHARACTER it must end with 3 tabs like the example of line #20 on the user attribute "Comment".
0 corresponding to the first active line of the Barcode_x.dat file (line #22 > assembly pos)
1 corresponding to the first active line of the Barcode_x.dat file (line #23 > length)
2 corresponding to the first active line of the Barcode_x.dat file (line #24 > weight)
The configured files can be copied to the model directory, the configuration directory (XS_FIRM) or any other directory managed by Tekla Structures.
Back to top
Setting code size
Code size in drawings:
The size of the picture can be modified in the template editor:
Code size in lists:
The size of the picture can be modified in the template editor using QR_BMP field:
Back to top