Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to select multiple parts in a frame assembly and run a rule that will add a custom property (or change the value if it exists) to the part level.
The attached rule lets me add a custom property to the file level I am at but will not push it to the part level from the selected items in a assembly.
I am wanting to do this to quickly add note designations to the frame components to show as a column in my BOM.
This is probably going to involve making a oOccurrence but not sure how to map it to multiple selected items.
'SPL NOTE iPROPERTY Dim propertyName1 As String = "SPL NOTE" Dim propertyValue1 As String = "-" customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties") Try prop = customPropertySet.Item(propertyName1) Catch 'Assume Error means Not found customPropertySet.Add("", propertyName1) End Try iProperties.Value("Custom", propertyName1) = propertyValue1
Solved! Go to Solution.