07-09-2018
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-09-2018
01:31 AM
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
![]()
----------------------------------------------------------------
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example