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

Thanks for sharing that example. I'm attempting to modify the loop so that it can change all the colours within an Assembly at the Part level.

 

My initial attempt simply re-named the active Color within the Part but unfortunately didn't change the Colours appearance.

 

For Each oRefDoc As Document In oAsmDoc.AllReferencedDocuments
	If oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject
		DirectCast(oRefDoc, PartDocument).ActiveAppearance.DisplayName = "Cyan"
	End If			
Next

 

 

Using the likes of Component.Color only creates an assembly appearance overide on the active view rep, which is why I can't use the below;

Component.Color("Example_Part:1") = "Red"

Would appreciate any help on having assembly level iLogic code change a parts Appearance at the part level.

Tags (1)