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

psuedo-code for that would be something like:

 

 

Sub Main()
dim stylename as string = "My Chosen Stylename"

For each doc as Document in ThisAssembly.AllReferencedDocuments
   If typeof doc is PartDocument then
      setPartLighting(stylename)
   else 'assembly
      setAssemblyLighting(stylename)
   end if
Next

End Sub

Sub SetPartLighting(Byval stylename as string)
 'copy in the answers from above and hope the magic smoke doesn't escape!
End Sub

Sub SetAssemblyLighting(Byval stylename as string) 'copy in the answers from above and hope the magic smoke doesn't escape! End Sub

 

:slightly_smiling_face: