Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Anonymous

Thanks Yosso, I think I prefer the method in the 1st link you sent.

 

I've gotten this far with it (for now just testing with four iProperties). I think I'm going wrong with the line highlighted in red

 

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")

Dim iprop(4) As String
iprop(1) = "GLASS_RUN"
iprop(2) = "GLASS_SET"
iprop(3) = "BPG_RUN"
iprop(4) = "BPG_SET"

For k = 1 To 4
Dim prop(k) As String
    Try
        prop(k) = iProperties.Value("Custom", iprop(k))
        total_labour = (iProperties.Value("Custom", prop(k))/60)*20
    Catch
    End Try
Next 

 Any idea how I can total up all the values of the iProperties and include that total in my equation?