×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

inch to mm convert

inch to mm convert

inch to mm convert

(OP)
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

RE: inch to mm convert

Since you are running non-teamcenter,... smile
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

RE: inch to mm convert

-y = entire Assembly
And the assembly tree is saved inside the assembly part
So why needed to consider load option

RE: inch to mm convert

(OP)
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

RE: inch to mm convert

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

RE: inch to mm convert

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.

RE: inch to mm convert

Sory I'm mistaken

They use the assembly open loaded option.

RE: inch to mm convert


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

RE: inch to mm convert

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

RE: inch to mm convert

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.

RE: inch to mm convert

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

RE: inch to mm convert


OK that's remove my confusion thank you very much.

RE: inch to mm convert

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

RE: inch to mm convert

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources