Anonymous
in reply to:
Anonymous
06-22-2016
12:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-22-2016
12:25 AM
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?