Export a drawing in 2D DWG or DXF format (old export)
You can also export drawings as 2D DWG or DXF using the old DWG/DXF drawing export.
If you want to use the old DWG or DXF
drawing export, set the advanced option XS_USE_OLD_DRAWING_EXPORT
to TRUE
in an
.ini file. This advanced option is by default
set to FALSE
. For instructions on using the newer DWG/DXF drawing export, see
Export a drawing in 2D DWG or DXF format.
For an example of setting up the layers and exporting to 2D DWG or DXF, see Example: Set up layers and export in DWG format (old export)
Export a drawing in 2D DWG or DXF format
Create layers in DWG/DXF files for export
You need to define the layers that are included in the exported DWG and DXF files.
To keep track on the layers that you have, create all the layers that you need for the final DWG/DXF drawings at the same time.
Next you can assign objects to the new layer.
Assign objects to layers in export
You need to define which objects to export to certain layers in the exported DWG/DXF file. You can do this by using a selection filter for identifying the desired objects among all objects, and by creating a rule to export these objects to a certain layer.
Before creating the rule, first create the selection filter.
The order of rules is important. Organize the rules by right-clicking the rule, and selecting Move up or Move down. The objects are exported to the first matching layer. If there is no matching layer, the objects are exported as Other object type.
Example: Create a rule for exporting beam marks to their own layer in drawing export
You can export all kinds of drawing objects to layers of their own.
This example shows how you can do that for beam marks. All kinds of marks can be exported separately to their own layers: bolt marks, part marks, connection marks, neighbor part marks, reinforcement marks and component marks.
First you need to create a selection filter selecting the beams and then you can define the layer rule. Name the beam selection filter Beams.
Copying export layer settings to another project
If you want your layer settings to also be available in other projects, you can copy them to a firm or project folder.
- On the File menu, click .
- Go to the Layer options tab and click Setup.
- Define the required rule and layer settings.
- Enter a name for the layer rule settings file next to the Save as button and click Save as.
- Copy the file <your_layer_rule>.ldb from the \attributes folder under the current model folder to the firm or project folder.
Define customized line type mappings in drawing export
You can use advanced conversion to convert the type, color and weight of lines and layers. This way you will get the line types that you want to use in the target software, for example, AutoCAD.
By default, Tekla Structures uses the file LineTypeMapping.xml in the folder ..\Tekla Structures\<version>\environments\common\inp for the conversion.
If you need to define your own line type mappings, you can use the file LineTypeMapping.xml as a template.
When modifying the line type mappings file, use an editor that is capable of validating XML in order to maintain a valid document structure.
To define your own line type mappings, do one of the following:
To |
Do this |
---|---|
Map according to line types only |
|
Map according to line types and layers |
|
This
is how the file LineTypeMapping.xml
is composed:
(1) The first section consists of XML and document type definition. Do not change or remove this section.
(2) The mappings that are available are defined here. You can use these mappings as a template for your own mappings.
Examples:
In
the first example, a new Mapping
element is added, where XKITLINE00
lines in the
Beam
layer are
converted to BORDER
line type, color is converted to 10
and weight to 1.00
mm:
In
the second example, a new Mapping
element is added, where XKITLINE02
lines in the
Part
layer are
converted to HIDDEN2
line type, the layer name is converted to Part_Hidden
, the color is
converted to 8
and
weight to 1.00
mm.
You
can use the LineTypeMapping.xml file for exporting hidden lines
to separate layers. The hidden lines must then be defined to their own layers (here
Part_Hidden
).
For the export to succeed, ensure that the layer (here Part_Hidden
) exists on
the list of available layers in the Modify Layers dialog
box.
Default line types in drawings
Default line types are available in Tekla Structures drawings. You can map default line types to customized line types, which are defined in TeklaStructures.lin and further exported to DWG/DXF files.
The table below lists the default line types and shows what they look like.
Line type name |
Line type appearance |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|