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
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
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
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
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
Regards,
Suresh
www.technisites.com.au