×
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

HOW to read/write in an expression value the total weight of my assembly?

HOW to read/write in an expression value the total weight of my assembly?

HOW to read/write in an expression value the total weight of my assembly?

(OP)
hello,

I try to put into an expression ("MASS") the total weight of my assembly.
does it exist this kind of function? May I've to do a NXopen program...
Somebody could help me?
Thanks a lot

RE: HOW to read/write in an expression value the total weight of my assembly?

Hello,
You can use function meassure body and select "associative", so NX will create associative body_meassurement. Then it will show in expressions.

With best regards
Michael

RE: HOW to read/write in an expression value the total weight of my assembly?

(OP)
Hello,

Yes, of course but the part number is changing so I can't use this kind of function.
Do you have an other Idea like UFWeight.AskProps(...)?


Thanks for your help

RE: HOW to read/write in an expression value the total weight of my assembly?

I have a journal to count mass for each part in assembly and write it in part file properties. In this case must be a global variable, which will be increased after each part count.

With best regards
Michael

RE: HOW to read/write in an expression value the total weight of my assembly?

Quote (niedzviedz)

I have a journal to count mass for each part in assembly and write it in part file properties. In this case must be a global variable, which will be increased after each part count.

Can you share that journal please? I was planning to write something myself. maybe this will be a good start..

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11

RE: HOW to read/write in an expression value the total weight of my assembly?

Some example is here: Link. Afternoon I will look for this journal.

With best regards
Michael

RE: HOW to read/write in an expression value the total weight of my assembly?

(OP)
Sorry, but my post speak about assembly.
I already tested this journal. Sure it runs well but only for body selected.
What I need is the part weight and more the assembly part weight.
Do you have an idea?

Thanks a lot for your help.

B/R

RE: HOW to read/write in an expression value the total weight of my assembly?

@ Pjone
He's offering you what your asking for. That was just a courtesy piece of sample code.

I'm tuned into this also... sounds like it would be a good solution to a glaring NX need.

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX11, Win 10 Pro

RE: HOW to read/write in an expression value the total weight of my assembly?

Thank you Micheal. It seems to work well in NX 1847.
Nice little tool.

Can you tell me if it measures every body in the part file or just the first one in the history line up?

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX11, Win 10 Pro

RE: HOW to read/write in an expression value the total weight of my assembly?

(OP)
@niedzviedz

Thank you so much it runs perfectly!!! i will adapt it to my model. Nice.
One thing more, is it possible to give to the MASS_PJOne expression the value of the total Mass you've calculated and shown on your report?

Sincerly, your journal is very helpfull because I'm NXOpen Rookie and it misses me some tips to modify existing program.

Best regards

PJOne

RE: HOW to read/write in an expression value the total weight of my assembly?

(OP)
@niedzviedz

Sorry for my last post, i didn't see the attribut Mass_prt.
Now i can use the value in my expression.

Many Thanks again2thumbsup

Best regards

Pjone Kenobi

RE: HOW to read/write in an expression value the total weight of my assembly?

It measure each body on layer = 1, because any unnecessary body I delete (by delete body) or if it is false, I move on layer 100.

With best regards
Michael

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

White Paper – Your Construction ERP RFP Checklist
Selecting business software for a medium to enterprise-sized construction concern is extremely challenging in large part because most enterprise resource planning (ERP) suites originated in the world of repetitive manufacturing and are therefore a poor fit for a project and asset-centric business. However, midsize to large contractors need the predictable, auditable processes that ERP delivers. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close