Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

transfer multiple x_b files to prt 2

Status
Not open for further replies.

wedxza

Mechanical
Jun 25, 2015
20
Hi,

I wonder if there is a way that I can import a folder of x_b files and export as prt file type to another folder?

I felt it is a bit dumb to open the file one by one and then "save as"...

Thanks
 
Replies continue below

Recommended for you

well, you could bring all into one file and then create a component of each one of those parasolids under create new component
I am also certain a program can be written to do what you want
 
I used to have a ufunc dll thats cycled through a selected folder and convert x_t to .prt

I cannot find it now.
if you goto GTAC and search on document nx_api2673 and/or nx_api4824 it may lead you to it.
 
Works for me, I copy then paste the path.
The one I used to have opened a browse dialog and cycled through sub folders too. I haven't had a need for it in quite a long time.
I'll save your program on my cloud so i don't lose it.


Code:
(1) Importing from \\EI-NAS-01\Laser\Cad files for laser\4618\detail 17-rev2.x_t...
(1) Saving  \\EI-NAS-01\Laser\Cad files for laser\4618\detail 17-rev2.x_t.prt...
(2) Importing from \\EI-NAS-01\Laser\Cad files for laser\4618\detail 17.x_t...
(2) Saving  \\EI-NAS-01\Laser\Cad files for laser\4618\detail 17.x_t.prt...
(3) Importing from \\EI-NAS-01\Laser\Cad files for laser\4618\detail 19.x_t...
(3) Saving  \\EI-NAS-01\Laser\Cad files for laser\4618\detail 19.x_t.prt...
(4) Importing from \\EI-NAS-01\Laser\Cad files for laser\4618\detail 20.x_t...
(4) Saving  \\EI-NAS-01\Laser\Cad files for laser\4618\detail 20.x_t.prt...
 
Wow, thanks Yuri. Thanks everyone. It works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor