Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Batch Conversion NX part file to Parasolid 2

Status
Not open for further replies.

Buckshott00

Bioengineer
Aug 10, 2010
229
Hello,

I am running NX7.5.4.4 on Windows 7pro 64 bit. I would like to convert the contents of a directory from Part files to parasolid files.

We have have some clients who have requested all parasolids.

If this option doesn't exist does anyone know the location of a journal or other NXopen type program that will do this?

Thank you
 
Replies continue below

Recommended for you

Thanks John,

I tried that first but only got a bunch of errors when I tried that program.
 
Check out the ug_inspect command. It used to have an option to export the Parasolid data and do all files in a folder.

Or is my memory fading?


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Is that the license controlled portion UG Inspect? because I don't have that module, but if you're talking about a different command please let me know.
 
ug_inspect is a utility program (run outside of NX) provided by Siemens, you can find it in the UGII subfolder of your NX install. If you search the help files on the term ug_inspect, you will get information and examples of how to use it.
 
If you open a command window and set your directory to the ugii folder of your NX install, then enter ug_inspect -h for the comand syntax and parameters.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Do you guys have an example I am able to access the command prompt but this old school command line stuff is a bit difficult

Thanks
 
Start, All Programs, Siemens NX 8.0 (or whatever release), NX Tools, Command Prompt. Type ug_inspect.
All the information, including extracting Parasolid, is there.

Mark Rief
Product Manager
Siemens PLM
 
cowski, I guess we just got called 'old'! :) I earned every one of my grey hairs from my kids.

You need to open the command prompt window from the NX menu, so you get the proper environment settings. Then just enter (without the quotes) 'ug_inspect -h'. This will list the options for the ug_inspect command.

Basically, if your files to export are in a single directory, use the cd (chnage directory) command to put you in that directory. Then you can run ug_inspect to extract the Parasolid data.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Mark

I was talking about the the Command prompt area, all the commands are listed but I'm still a bit lost. If I am trying to batch convert do I list the directory, or do I list every part file in the directory? Do I have to have a separate transmit file for each one? An example on the proper format would go a long way.
 
looslib,

To be fair I said Old School, which is still cool [bigglasses] Also to my generation anything pre NX3 is old.

I've gotten that far, but when I try to extract file or even individual files I get messages regarding transmit files etc.

Thanks
 
Changed Directory: done
Any ug-inspect command after that: could not open ... status 1

doesn't that mean I have the command wrong?
 
If you only get ug_inspect information when in the ugii directory, then you don't have the proper environment variable set to allow the command to run from another directory. Try runing the command line with the full path: <ug_loadpoint>/ugii/ug_inspect. <ug_loadpoint> is different if your install did not use the default settings.

Since I started on UGII V3, I guess I am "old school", as well as old!


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
loolib,

I can get just about everything but the part file. It might be that it is making the Parasolid and putting it in a temp drive.

@cowski Good Jorb!
 
I can extract a .jt file but not a parasolid, and it places the .jt in the UGII directory
 
I don't have NX where I work now, so all of this is coming from memory. Someone with NX will have to take you further if you aren't getting the Parasolid file created from the command line. I would guess that it would put the file in the directory that you execute the ug_inspect command from.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
WOW!!! [surprise] That's impressive from memory!

I was able to get 1 parasolid out of the directory, but I keep getting errors about psuedo entries.

Thanks again for the help.
 
One caveat I just thought of, if you use the command line option it will probably output all sheet and solid bodies in the file. This may or may not be what you want, just thought I should point it out.

Here are a few relevant threads:
thread561-137205
contains usage of the ug_inspect program and a possible batch file.
uwam2ie said:
md %temp%\clncall
%UGII_BASE_DIR%\UGII\ug_inspect -extract_all %1
rem %temp%\clnpause
To use this code, copy and paste it into notepad, name it and make sure the extension is .bat. Drag and drop your part file onto the .bat file (in windows explorer). It references your temp directory, I assume it will extract the parasolid there, but I have not tested it.

thread561-270935
petulf posted a journal program to export parasolid files in this thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor