tthayer
Automotive
- Apr 11, 2016
- 5
Hi All,
I have been trying to automate moving and translating files. I basically have all the code done and I'm using the "ug_inspect.exe -extract_all". I'm trying to export a whole assembly into one parasolid, and it seems like the only thing that is exporting is a body feature that is in the assembly itself.
I was wondering if anyone knows if there is a way to change this? Perhaps somewhere in NX's options? OR maybe in my code?
I have been trying to automate moving and translating files. I basically have all the code done and I'm using the "ug_inspect.exe -extract_all". I'm trying to export a whole assembly into one parasolid, and it seems like the only thing that is exporting is a body feature that is in the assembly itself.
I was wondering if anyone knows if there is a way to change this? Perhaps somewhere in NX's options? OR maybe in my code?
Code:
@ECHO on
ECHO "%~1"
SET "trufolder=%~1"
SET "moddate=%DATE:~4,2%%DATE:~7,2%%DATE:~12,2%"
SET "filename=%~n1"
SET "shortname=%filename:~0,8%"
SET "datefolder=D:\Quotations\Customer Files Recd\%shortname%\files recd %moddate%"
MD "%datefolder%"
CD /D C:\Program Files\Siemens\NX 9.0\UGII
ug_inspect -extract_all "%trufolder%" "%trufolder%"
move /-y "%trufolder%*.x_b" "%datefolder%\%filename%.x_b"
start "%datefolder%\%filename%.x_b"