04-13-2022
04:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-13-2022
04:16 PM
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.