Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
rprivittB3TTG
782 Views, 13 Replies

How can I update a Custom iProperty after cutting?

I have been using an imported Unistrut STEP file. The original file is 240 inches in length. I use a "Cut" feature to change the length. I also automated this with a slide bar for the measured length with a local "Form". I then have an iLogic "Rule" that save the customized length with the Unistrut name + the LENGTH parameter.

On the Drawing Parts List, I show the sum of Mass for each part in the assembly.

 

The problem is, no matter how long I have reduced the Unistrut part length using the "Cut" feature, the Mass is always the same as the full 240 inch length.

 

I tried using this code below. But it doesn't update the iProperty Mass:

ThisApplication.CommandManager.ControlDefinitions.Item("AppUpdateMassPropertiesCmd").Execute
myMass = iProperties.Mass

MessageBox.Show("Mass = " & myMass, "iLogic")

I have already created a bunch of Unistrut lengths and used them in a lot of assemblies. I wish I had just started from scratch and just change the length dimension instead of using a cut. But I am fairly far down the road now. I need to manually update all the existing parts in my Vault. The existing parts do not update. I have resorted to adding my own calculation in the iProperties Physical Mass field on every part. I would like to automate this process some how.

 

rprivittB3TTG_1-1632853320273.png

 

I have also tried entering in the iProperties Physical Mass field: .1575 * LENGTH; But that doesn't work for some reason.