mapping dxf export file
mapping dxf export file
(OP)
when i export a drawing to dxf, when they pick it up the black lines of the export change to dark red.(on their black background)
I read up on the help and i can add a line into the dxfdwg.def file to change that, so i added EXPORT:216=7
216 is black in UG, and 7 is white in AUTOBAD
but it doesn't change anything. Am i missing something??
I read up on the help and i can add a line into the dxfdwg.def file to change that, so i added EXPORT:216=7
216 is black in UG, and 7 is white in AUTOBAD
but it doesn't change anything. Am i missing something??





RE: mapping dxf export file
After reading ur post, I tried the following but I too did not get any success.
1.Created a file 1.txt which contains line EXPORT:216=7
2.Modified the dxfdwg.def file (made a local copy of the file) by adding the line
COLOR_MAPPING_FILENAME=G:\1.txt
3.File->Export
and selected the Setting file modified in step 2.
You can go to UGII_BASE_DIR\DXFDWG and run dxfdwg.cmd
and click export, in the next dialog click Edit->Settings-> Advanced tab where u get "Mapping Specifications", select file for Color mapping (1.txt in this case), hit OK and in the main dialog box select file->save to save the .def file.
If u open this saved file u will notice the line
COLOR_MAPPING_FILENAME=G:\1.txt
As given in the help, EXPORT:216=7 should work, but I don't know why it is not working.
RE: mapping dxf export file
I use 1 instead of 216, because the linecolor displayed on the screen is "Black" (216), but the NX-color is "White" (1).
Please copy/paste the line above in your colordef-file and try it.
The text after the "!" is just a remark. The colordef-file can handle it.
RE: mapping dxf export file
Also i have to import a .cgm because of licence restrictions, then i dxf that out, so the lines from the .cgm are black, so that's why i need to use 216
RE: mapping dxf export file
1)Search in UGII directory for ugcolor.cdf file
copy it to local drive
MB3 edit
add line export : 216 = 7 in the end
save
2)Run UGII_BASE_DIR\DXFDWG\dxfdwg.cmd
Export->
In Edit->Settings-> Advanced tab select the above edited file for Color Mapping.
RE: mapping dxf export file