Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping dxf export file

Status
Not open for further replies.

moog2

Mechanical
Jan 16, 2007
441
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??
 
Replies continue below

Recommended for you

moog2,
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.
 
I have created a file Color_MAP.def and added the following line: export : 1 = 7 ! NX White (1) maps to ACAD White (7).
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.
 
to get it to read the colour map file did you alter a system variable, or just point it to those as a settings 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
 
Well, that's right raerts!

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.
 
Ahaa ! That's how it works.... Thanks Man..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor