Message 1 of 13
Is it possible to edit iProperties in suppressed parts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I want to edit the text of the property "Keywords" (within the Summary tab). I use the code below in the assembly and if the part is suppressed it should get the text "Reference" and if it's not suppressed it should get the property "Normal". This will help us within Vault to see if the part is suppressed or not without opening the model.
I've tried the code, but noticed the text value is only written to the part if it's not suppressed. So I would like to know if it's possible to send a text value to a suppressed part, because now it will always have the text "Normal".
Dim ThisAssembly As AssemblyDocument = ThisDoc.Document
For Each ChildPart As ComponentOccurrence In ThisAssembly.ComponentDefinition.Occurrences
If ChildPart.Suppressed Then
iProperties.Value(ChildPart.Name, "Summary", "Keywords") = "Reference"
Else
iProperties.Value(ChildPart.Name, "Summary", "Keywords") = "Normal"
End If
Next
InventorVb.DocumentUpdate()
Inventor 2021.3.1