Use the physical properties (iProperties) of the part in iLogic equations

Use the physical properties (iProperties) of the part in iLogic equations

francisco_joseCZL9Z
Explorer Explorer
1,024 Views
7 Replies
Message 1 of 8

Use the physical properties (iProperties) of the part in iLogic equations

francisco_joseCZL9Z
Explorer
Explorer

Good morning.
I would like to know if it is possible to use the physical properties of the parts in the composition of the expressions created by iLogic.
Example: I need to define the Estimated Cost of a part, to do this, I need to create an expression that uses the mass or cubic volume of the part, this data is already calculated by default by the software, however, I am not finding a way to use it in expression. With the measurements of the piece you simply indicate the dimension code (d8 + d28) and the expression accepts the values.
Thanks!

0 Likes
Accepted solutions (3)
1,025 Views
7 Replies
Replies (7)
Message 2 of 8

jeffrey4283
Participant
Participant
Accepted solution

You can access those via iLogic pretty easily using the code snippets provided. 

 

jeffrey4283_0-1708086731545.png

 

To access the mass and volume as your jpeg seems to indicate it would be

mass = iProperties.Mass
volume = iProperties.Volume

 

Message 3 of 8

francisco_joseCZL9Z
Explorer
Explorer

Thanks Jeff! I'll test it here now!

0 Likes
Message 4 of 8

francisco_joseCZL9Z
Explorer
Explorer

Jeff, with your help, I can now use the parameters!
If you can help me with another question, I noticed that when modifying the 3D model, I always need to execute the iLogic rule so that the values are updated (assign a value for the weight of the part).
Is there a feature to automate updating the iLogic rule as I make modifications to the 3D model?
Thanks!

0 Likes
Message 5 of 8

jeffrey4283
Participant
Participant
Accepted solution

Without knowing exactly what you are doing I am not 100% sure but you should be able to add an event trigger to accomplish this. Just drag and drop your rule from the left side of the event trigger dialog onto "Any Model Parameter Change" shown below and any time you change the model it will trigger the rule.

jeffrey4283_0-1708092021099.png

 

Message 6 of 8

francisco_joseCZL9Z
Explorer
Explorer

Example:
I assigned a value of $1.00/kg of the piece. At first the piece weighs 5 kg, however, I modify the measurements of the piece, which now weighs 8 kg. I believe the solution you described above will help me. Thanks!

0 Likes
Message 7 of 8

Rich-T
Advocate
Advocate
Accepted solution

Here's a tip:

 

You can put iproperties into a 'general note' and have them displayed on screen as below.

If you add the 'update mass properties' to your quick toolbar (see below) it will highlight if an update is possible, hit the button and see the update on screen. you can do this with custom iprops, physical props, parameters etc. etc.

 

I find having the mass on screen focusses people's attention if the mass is critical.

 

RichT_0-1708300876400.png

 

Message 8 of 8

francisco_joseCZL9Z
Explorer
Explorer

Thanks for the tip, Rich-T!
Visually it will certainly help a lot to keep the parameters always updated.

0 Likes