Extracting and updating Mass as a parameter in inventor for an optimisation problem

Extracting and updating Mass as a parameter in inventor for an optimisation problem

teranceU3ZEE
Explorer Explorer
331 Views
3 Replies
Message 1 of 4

Extracting and updating Mass as a parameter in inventor for an optimisation problem

teranceU3ZEE
Explorer
Explorer

I am using Inventor along with an optimization program called HEEDS in a mass minimization problem. There are 2 gripper arms in the assembly. The dimensions of the 2 arms is varied between an upper and lower bound using HEEDS to carry out the mass minimization. I have successfully exported the dimension parameters (length, breadth, etc.) to Heeds as input to be varied. One of the boundary conditions for the problem is that, the difference between the masses of the 2 arms in the assembly should not be greater than a numerical value. For that reason, the masses of the individual arms needs to be extracted from inventor. I did this by creating a rule: 

mass_B1 = iProperties.Mass

 for the Arm 1 and:

mass_B2 = iProperties.Mass

for arm 2. I then created 2 user defined numerical parameters in the 2 arms as 'mass_B1' and 'mass_B2' respectively and executed the rule, and I was able to extract mass as a parameter. I am able to extract these parameters to HEEDS, but my issue is that they are not getting updated when the dimensions are varied. I am assuming, the problem lies where the rule is not getting executed, after the geometry is changed. My question is: Is there a way to execute the rule as a macro or a journal, after the geometry is changed? Or is there any setting that I can turn on, where the rule gets executed automatically when there is a geometry change?

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

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Run these rules after one of these:

bradeneuropeArthur_0-1703791272167.png

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 4

teranceU3ZEE
Explorer
Explorer

Thank You. It worked perfectly.

Message 4 of 4

Rich-T
Advocate
Advocate
Just a thought for you - I find it helpful to display the model mass on screen in a general annotation note.

You could do something similar with the event trigger solution above and your B1 & B2 model parameters, so they are always updated and displayed on screen when you edit the model.

You might then get a bit fancy with it and have a third parameter to calculate and display the +/- mass change for the most recent geometry edit.
0 Likes