Access mass from user parameters?

Access mass from user parameters?

nbonnett-murphy
Advocate Advocate
553 Views
2 Replies
Message 1 of 3

Access mass from user parameters?

nbonnett-murphy
Advocate
Advocate

Is there a way to get mass into user parameters? I want to do some math with dimensions and the mass, then set another dimension based on the result.

 

I'm sure it's possible with iLogic, but I'd prefer to avoid that in this case since it's a one-off thing.

0 Likes
Accepted solutions (1)
554 Views
2 Replies
Replies (2)
Message 2 of 3

jtylerbc
Mentor
Mentor
Accepted solution

iLogic is probably the only way, but it would be very simple iLogic code.  Something like:

 

 

Mass_Param = iProperties.Mass
iLogicVb.UpdateWhenDone = True

 

So just two lines of code, and the second one is just eliminating the need to click Update again after the code runs.  You would probably want to set a trigger for "Part Geometry Change," but "Any Model Parameter Change" would probably also work.

Message 3 of 3

johnsonshiue
Community Manager
Community Manager

Hi! Inventor mass property is a text-based property. It isn't a parameter. You will need to use an iLogic rule to get the mass property and do the math with other parameters.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes