Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sub MatchColor()
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oOcc1 As ComponentOccurrence
Set oOcc1 = ThisApplication.CommandManager.Pick(kAssemblyLeafOccurrenceFilter, "Org part")
Dim oAppear1 As Asset
Set oAppear1 = oOcc1.Appearance
MsgBox (oAppear1.DisplayName)
Dim oOcc2 As ComponentOccurrence
Set oOcc2 = ThisApplication.CommandManager.Pick(kAssemblyLeafOccurrenceFilter, "Repli Part")
Dim oAppear2 As Asset
Set oAppear2 = oAppear1
End Sub
Can anybody help to complete this code.???
Hope u understand what i need. (match occ1 color to occ2 color)
Thank you,
k
Solved! Go to Solution.