Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

inch to mm convert 1

Status
Not open for further replies.

bmarchand

Automotive
Mar 12, 2014
108
0
0
CA
I have my right click menu set like this

"C:\Program Files\Siemens\NX 11.0\nxbin\ug_convert_part.exe" -mm -y "%1"

When I try to convert an assembly, is works about half the time

I'm trying to convert the main assembly and all parts and sub assemblies under it from inch to metric

Is this the correct command to do that or should I be using the "directory" switch

Thanks

brian

Brian Marchand-owner
BRM Design
NX 11.0
16G Ram - Nvidia Quadro K4000
Win 7 Pro x64
 
Replies continue below

Recommended for you

Since you are running non-teamcenter,... :)
Does your load options always work if you run the "convert_part" on any assembly ?
I.e, can you load any assembly without touching/changing the load options ?


Regards,
Tomas
 
Toost, yes, I have never had a problem, Cowski, yes I have write access

Brian Marchand-owner
BRM Design
NX 11.0
16G Ram - Nvidia Quadro K4000
Win 7 Pro x64
 
a984928 :

Brian says that he wants to "convert the main assembly and all parts and sub assemblies under it "
I.e many files should be converted, not only the top assembly.
For the UG_Convert_part.exe to find these other parts, it will use the default "load_options.def" ( unless overridden in the command string)

Many NX users use different directories for different projects, and have standard parts in other directories.
Then you must set the load options for the session.

Regards,
Tomas
 
Tomas I'm very thank you
I think so because I seen journals that walk
depth in the assembly structure and report
the assembly tree.
so in which load option they related.

Thank you again.
 

I'm stil confused
in the usage help theire is no option for load option

usage: ug_convert_part [options]

options:
[-in <filename>] converts file <filename> to inches
[-mm <filename>] converts file <filename> to millimeters
[-d] sets the current directory as the source
[-d <dirname>] sets directory <dirname> as the source
[-o <dirname>] sets existing directory <dirname> as the destination
[-s] traverses subdirectories
[-u] converts udf files
[-uo] converts udf files only
[-x] exports the expressions of the converted part
[-y] converts entire assembly

 
ug_convert_part uses the same Assembly Load Options as NX uses. Since that is the case, there is no reason to have anything related to Assembly Load Options within ug_convert_part. The only time the Assembly Load Options will come into play is if you use -y when executing ug_convert_part (converting an entire assembly). If you need to change your Assembly Load Options, change them from the NX session/interface.

Tim Flater
NX Designer
NX 9.0.2.5 Win7 Enterprise x64 SP1
Intel Core i7 2.5GHz 16GB RAM
4GB NVIDIA Quadro K3100M
 
Thank you Xwheelguy

So when using the _y option
their must be a nx session opened.
if no nx session in working
ug convert part _y won't work.
is this true.
 
No.

The ug_convert_part executable knows where to search for the NX Assembly Load Options. If, for any reason you need to change the Assembly Load Options, you need to do it from within NX so an assembly file could be opened and know how/where to look for the components in the assembly.

We are talking about 2 separate programs, really - it's just that when you run/execute ug_convert_part, it uses/borrows some of the NX defaults like the load options so the NX files can be opened in the background, converted and saved. That's all.

Tim Flater
NX Designer
NX 9.0.2.5 Win7 Enterprise x64 SP1
Intel Core i7 2.5GHz 16GB RAM
4GB NVIDIA Quadro K3100M
 
No problem. I'm glade we all were able to make you understand this more clearly.

Tim Flater
NX Designer
NX 9.0.2.5 Win7 Enterprise x64 SP1
Intel Core i7 2.5GHz 16GB RAM
4GB NVIDIA Quadro K3100M
 
So I'm not sure what is going on with my computer, but when I checked a file in the folder, it said I have full access, but would not convert, but I right clicked on the folder I have everything in and when I checked permissions on it, it was not set to full control. I changed that to allow me full control and it worked!

Regards,



Brian Marchand-owner
BRM Design
NX 11.0
16G Ram - Nvidia Quadro K4000
Win 7 Pro x64
 
Status
Not open for further replies.
Back
Top