Reference Physical iProperties In Parameter Equation

Reference Physical iProperties In Parameter Equation

cstarker6VCG4
Collaborator Collaborator
726 Views
2 Replies
Message 1 of 3

Reference Physical iProperties In Parameter Equation

cstarker6VCG4
Collaborator
Collaborator

I need to calculate the mass offset of an assembly relative to an axis. How do I reference an iProperty > Physical (Mass, X, Y, etc) in a parameter equation?

 

I tried iProperties.mass, iProperties.Value("Physical", "Mass"), and just <mass> and had no luck. I didn't find any comprehensive documentation on Parameter syntax, but I'm still looking.

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

johnsonshiue
Community Manager
Community Manager

Hi! This will require iLogic. Though you may reference an iProperty within the iProperties dialog, the value is text-based. Parameters are not aware of iProperties. It is the other way around.

It is very straight forward to do it in iLogic. Basically, the rule needs to get the physical properties and then assign the value to a given parameter.

Many thanks!

 



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

Frederick_Law
Mentor
Mentor
Accepted solution

Attached iLogic file.

Code "borrowed" from example found in this forum.

 

Unzip and put the file in External Rules folder.

I set it up with Before Save trigger in Part and Assembly.

 

This is for Mass only.

Do you need location of CoG?