By Florentina Stirbu
As I have been getting into iLogic lately, I’ve been thinking how I could use it to pull some information into custom family tables. That’s how I came across this VBA Macro.
I’ve created an iPart that I intend to Publish to my custom library, and I want to have the weight of each member shown in the Family Table. As the mass cannot be added to the family table directly, iLogic sounds like the perfect tool to use in order to achieve that.
First, a custom iProperty (Weight) is created for the iPart:
Then, the custom iProperty can be added to the family table:
In order to get the correct weight value for each row, the following iLogic Rule was created:
Note: the item in this line oRow.Item(5).Value = strWeight is 5 because “Weight” is the 5th column in my family table.
If we then run the rule, the Weight values will be extracted from the Mass Properties and written in the table for each row.
.txt with code attached below:
Visit Cadline Community for more blogs.
The post Blog: Inventor – Weight of iPart Members – iLogic Code appeared first on Cadline Support.