Export Setup
When objects in a model are connected to their respective process codes, you can use this intelligence in the model when exporting to, e.g., DWG, LandXML, or IFC. For these formats, you can set up multiple combinations of 'Code' and 'Description' found in the classifications, so that, e.g., DWG layer names and LandXML object names are named according to classifications.
Setup and End Results
The correlation between export setup, conversion rules, and final results is as these next pictures show. The setup for using classification in the exported file might look like this.
The numbers on the right from 0-4 correlate with the conversion rules as shown below (example from IFC conversion rule). The image shows the setup in the 'Attributes Conversion per Feature' dialog extension.
Note: DWG does not have the conversion rule to set this up, and accepts only 2 field code groupings separated by a 'Field code delimiter'. For DWG, the first group will be the LayerName. The second group will be the layer's description as shown in the CAD Layer Manager.
Example: To DWG
Export to DWG
To produce a DWG file with process codes in the layer name, you must start the function Export to DWG on the Delivery menu. This functionality is only available here.
The following menu bar appears.
To set up the classifications to be generated in the layer name, you must choose the Use field codes option (here shown as “Bruk feltkoder”) in the drop-down list below layer standard assignment and then press Settings (sprocket). Then you get the following dialog:
In this dialog, you must add the codes and descriptions that should be used to generate the layer name.
Furthermore, it is possible to create a separate string to the layer's name description. See the next dialog, which is an example of the setup of layer names, with a drawing key and object code in the layer name and description in the column layer description.
By pressing Add, you get access to the classifications placed in the model. And you can then select each one as part of a layer name.
In the setup for export to DWG, the layer name of the string “ FIELDCODE_1 » and layer name description of string ” FIELDCODE_2 .“ ” FIELDCODE_1 » is string created.
Once you are ready, save your setup to the task by pressing Finish to produce the DWG drawing.
In the open drawing setup shown above, have a layer structure that looks as follows; (depending on which objects you have chosen to send to DWG )
Example: To LandXML or IFC
In the same way as for DWG export, in LandXML/IFC export you must also set up how the string to be sent to LandXML should look as to code and description. In the export choose LandXML as the format and then press Settings (sprocket) which provides access to a setting dialog.
The following picture shows one example of how a code and description are combined. This string is later sent to the object name of the object in the LandXML file.
When the string is set up as you want it to, press Save to task and then Choose a rule in the export menu. It is important that you choose the conversion rule «Roadmodelsurfaces with fieldcode name».
Press Select and then OK, so the file will be added in the conversion field export menu.
Press OK in the menu for export. The LandXML file is produced. If one reads the file in another application. E.g., Civil3D then objects from the LandXML file come up with names such as those configured in string field codes. See the following pictures.
From import;
Done uploaded;
Next topic: Class