Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Opening Multiple DXF Files in NX 4.0 for tranlation to PRT

Status
Not open for further replies.

MUKILTEO

Aerospace
Mar 31, 2009
2
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
 
Replies continue below

Recommended for you

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
 
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
 
 http://files.engineering.com/getfile.aspx?folder=92839998-947b-47af-96de-f281569483c3&file=NX4_open_dxf.zip
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






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor