With this configuration a DXF/DWG file can be imported. The "import" configuration consists of the following files:
- dxf-import.cfg
- tablayerexpimport.dat
- tabdashexpimport.dat
- tabfontexpimport.dat
- tablayerimpimport.dat
- tabdashimpimport.dat
- tabfontimpimport.dat
in the %ncghelps%\dxf directory.
The file dxf-import.cfg contains the line:
special_act=yes
below label 4 which activates the use of the label SPECIALIMP in the dxf-import.cfg file. This label contains the changes necessary to add layer information to the imported objects. In this example the elements in the first 50 fragments receive extra attribute information.
label SPECIALIMP
{
par f=1
mod a9='nupaslayer'
mod a10='Layer1'
bac p
bac r
par f=2
mod a9='nupaslayer'
mod a10='Layer2'
bac p
bac r
...
par f=49
mod a9='nupaslayer'
mod a10='Layer49'
bac p
bac r
par f=50
mod a9='nupaslayer'
mod a10='Layer50'
bac p
bac r
}
exit
With the used tablayer file tablayerimpimport.dat the AutoCAD layers are mapped to the Hull fragments, after which the label SPECIALIMP is used to add the attribute data containing the layer names. In this case attribute 9 has to have the value "nupaslayer" while the contents of attribute 10 can be chosen freely.
If the used layer names are corresponding with the used names in "Layer control" or "Object control" these functions can be helpful to control the different items.