Export Settings
You can specify a number of variable settings for the DXF/DWG export. The settings are valid for all drawings.
The settings are specified under Label 1 in the dxf<configuration_name>.cfg file.
BlueLines
BlueLines = yes | yes_m | no
Defines if the drawing is exported with the normal lines indicating the real thickness or with only one line. yes is the default value.
If set no or yes_m only one line indicating the position of plates and brackets in cross section is exported.
no | The moulded line of plates/brackets in cross section will be exported. |
yes | The normal lines indicating the real thickness will be exported. |
yes_m | Only the measure line of the normal lines will be exported. |
Note: This setting has no effect when .plo files are exported. This means that the result depends on the corresponding plot setting in the used plot configuration.
DXFVersion
DXFVersion = 12 | 13 | 14| 2000 | 2004 | 2007 | 2010 | 2013 | 2018
Defines which AutoCAD compatible DXF format is used. 2018 is the default value.
If DXFVersion is omitted the export process creates a DWG/DXF file that is compatible with the AutoCAD 2018 format.
NoDXFDump
NoDXFDump = true | false
Defines whether a "dump" and "etch" is performed in the export process. true is the default value.
If a "dump" is performed the result in the DXF/DWG is visually more like the dimensions in CADMATIC Hull, but they are not of the entity dimension anymore. If no "dump" is performed, an object which in CADMATIC Hull is a dimension is also of entity dimension in the DXF/DWG file.
true | No dump is performed. |
false | A dump and an etch is performed. Dimensions are converted to lines and Texts or Mtexts (multi line texts) in the DXF/DWG file. |
Note: Because there is a difference between dimension properties in AutoCAD and CADMATIC Hull, the drawing will not be exact if this setting is set to true.
NupasLayerCtr
NupasLayerCtr = true | false
This setting is used when CADMATIC Hull elements have to be put in the layers used by the "layer control" in CADMATIC Hull. false is the default value.
If this setting is set to true each element in a 2D sub-model or a plantek sub-model, which is in a particular layer, will get the same layer identification when the model is expanded.
This setting is only effective if the Spec_name conversion is used. In that case it is possible that certain 3D elements cannot be selected, as is done in the dxfselect.cmd macro with the help of labels in the %ncghelps%\dxf\dxfselect.cmd or dxfselectplo.cmd macro.
true | All elements in the plantek sub-models or 2D sub-models get the "layer control" identification of the sub-model. |
false | All elements in the sub-models keep identifications, if present, as they are. |
Note: This setting should be used only if the conversion according to the "layer control" layers is used, because it takes more time to export the sheet drawings when this setting is set to true.
SelectByColor
SelectByColor = true | false
Defines if elements with a certain colour in a CADMATIC Hull drawing are placed in a certain AutoCAD layer. false is the default value.
This variable is used in connection with the spec_name variable to indicate that all sub-models are expanded before elements in the drawing are selected, based on their pen colours. This is necessary for a complete conversion, based on only the pen colours of the elements. The conversion is activated by specifying this setting and also the name of the file that contains the details of the conversion in Label 1 in the dxf-<configuration_name>.cfg file. This file, specified with the spec_name variable, contains the mapping of the specified coloured elements to the specified layer.
true | All submodels are expanded. |
false | The drawing still contains sub-models from the %ncgmodellen% directory. |
Spec_name
Spec_name = <filename>
Defines if specific elements like brackets, brackets in cross section, brackets in view, plates, plates in section, etc. from a CADMATIC Hull drawing are placed into a specific AutoCAD layer.
For example, it is possible to place all brackets in one layer and all plates in another layer. Or, it is possible to place all construction items in view in a specific layer, and construction items in cross section in another layer. All items that can be selected with standard HullGUI commands can be put in specific layers. Explanation of how items can be selected can be found in the %ncghelps%\dxf\dxfselect.cmd or dxfselectplo.cmd files.
The conversion is activated by specifying the name of the file that contains the details of the conversion in the dxf-<configuration_name>.cfg configuration file. This is done by including the line Spec_name=<filename>
under Label 1 of the .cfg file. The name of the file, <filename>, can be specified by the user. When <filename> contains no extension, it is assumed to be .dat. See also Export to Layers.
Special_Act
Special_Act = yes | no | yes_m
If this setting is set to yes, the configuration file dxf-<configurationname>.cfg must contain label SPECIALEXP. This label is executed just after the drawing is loaded. no is the default value.
If the bluelines setting is set to yes or yes_m the sub-models other than the ones in the %ncgmodellen% directory will be expanded, and the bluelines will also be present before this label is executed. Also, no special actions like expanding all sub-models, hatch removal, etc. have been performed yet. This means that by using the SPECIALEXP label it is, for example, possible to manipulate the sub-models of a sheet drawing (bluelines set to no). After this the normal process will be continued.
If Label 1 in the configuration file contains the special_act='yes'
line the configuration file should also contain label SPECIALEXP.
Removehatch
Removehatch = all | yes | no
Defines if the hatches or colour fills should be removed. no is the default value.
Complex hatches or colour fills can result into large DXF/DWG files, because a complex object is divided into triangles before exporting it. For example, a HP-profile in cross section is not exported as one object but as a number of 3D faces and a number of hatches. To reduce the size of the DXF/DWG file the hatches and colour fills can be removed, leaving the contour of the object in the form of 3D-faces.
If this setting is set to all, all hatches and colour fills are removed in the export process. Setting this to yes causes the removal of fragment 14 and 31 hatches and colour fills, and also the faces of profiles in cross section.
Removefr7hatch
Removefr7hatch = yes | no
This setting controls the removal of hatches and colour fills of logos or TTF-characters in the title field. no is the default value.
Complex logos and TTF characters generate large DXF/DWG files, because of the triangulation of these objects. To remove the hatches and colour fills in the title field (in Hull fragment 7), set this settings to yes. If the logo is designed in such a way that there are contour lines, these lines are converted too.
RemovePrHatch
RemovePrHatch = yes | no (default)
Defines if the hatches and colour fills should be removed from profiles and plates in cross section (presented as thick red lines). These kind of hatches can result in large DXF/DWG files. no is the default value.
Personal Macros (Label 2 and Label 3)
In addition to the export settings, you can create a number of personal macros and include these under Label 2 and Label 3 in the dxf-<configuration_name>.cfg file.
Label 2 – Pre-conversion actions
Include extra actions that should be performed on a drawing prior to the conversion under Label 2. The Drawing_Name string variable contains the name of the drawing, without the file extension, but including the full path.
This way, actions can be executed on a specific drawing, block, or even view type. In the example below, all the pos numbers are removed before the drawing is converted.
Label 2
{
partition f=100,a1=posnummer
kill p
exit
}
Label 3 – Post-conversion actions
Include extra actions that should be performed on a converted drawing under Label 2 The Dxf_Name string variable contains the name of the just converted drawing, including the full path.
An extra action may consist of, for example, copying (name) or moving (location). The example below shows how all exported drawings are copied to a specific location, with the project name added before the name of the DXF/DWG file:
Label 3
{
cpos(Dxf_name,'/sheet\')
s10=env(NCGPATH)
s20=file(s10)
s30=file(Dxf_Name)
s30='E:\projects\dxf-files\'//s20//'-'//s30
:cp ^dxf_name ^s30
exit
}