×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

mapping dxf export file

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??

RE: mapping dxf export file

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.

RE: mapping dxf export file

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.

RE: mapping dxf export file

(OP)
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

RE: mapping dxf export file

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.

RE: mapping dxf export file

(OP)
Ahaa ! That's how it works.... Thanks Man..

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources