×
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

Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

(OP)
Hi,

I have to translate 400 or so DXF files from Catia, into UG and save them as individual prt files. The DXFs are of 2D drawings in Catia. Eventually, I will turn them into UG drawings by opening each one and selecting a sheet size and view etc. The batch dxf translator (dxfdwg.cmd) for dxfs into UG keeps dropping all of my dimensions when I open the final prt file. We have played with all Catia settings for the output files and ACAD openes them with all entities so its not the DXF files.

I finally noticed that if I just use the open command in UG, it translates the file (very slowly) and saves a prt under the same name in that directory, with _dxf tersed onto the name.

SO... I want to open all 400 files at once.

How do you open many files at once, all with dxf extensions?

This is NX 4.0, Catia V5 and yes, my computer can handle it. i just want to go get coffee for an hour(s) and come back to a directory full of new prt files. :)


Thanks,

David
 

RE: Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

Look into batch conversion using the translator from the start menus instead. It will probably be the sort of thing that you want to run overnight.

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum

RE: Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

I have attached an external UG Open program that works same as opening a dxf file interactively and saving it.  To test this program copy it to a new directory with all your dxf files.

Go to Start -> Programs -> UGS NX 4.0 -> NX Tools -> Command Prompt.  When you get the command prompt cd to the directory created earlier.

To test the program type NX4_open_dxf.exe yourfilename.dxf

If you are happy with the output, to process all the files in the directory type

for %f in (*.dxf) do NX4_open_dxf.exe %f

Hope this solves your problem.
 

Suresh
www.technisites.com.au

RE: Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

(OP)
UFSure,

It works. I had written a bat file that used the for command (using tips from this forum) to call dxfdwg.exe and point at a certain .def file. No Luck. I used dxfdwg.cmd and tried font and color mapping etc. No luck.

The exe you wrote works perfectly. I don't know why the open command translates dxfs differently than the translator they provide, but it does and now I have dimensions. I didn't mind opening each of them, but the dxfs were bound to change before we deliver and I would have had to open every file a few times.

You are the bomb and I thank you so much. This forum has a lot of talented designers and programmers and you have just saved my bacon.  

Dave






 

RE: Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

I am glad it solved your problem.

Regards,

Suresh
www.technisites.com.au

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