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

Is it possible to edit iProperties in suppressed parts?

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

Labels (1)