- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have several assemblies that have invisible parts in them. When I place these assemblies into a parent assembly and toggle the visability off/on my invisible parts show up. Is there an iLogic code I could run that would activate the default view representation in all of those assemblies instead of the default "Master" view rep? Here is the code I've written so far:
Dim aDoc As AssemblyDocument
aDoc = ThisApplication.ActiveDocument
Dim iDoc As Document
For Each iDoc In aDoc.AllReferencedDocuments
Dim ocompdef As ComponentDefinition
ocompdef = iDoc.ComponentDefinition
ocompdef.RepresentationsManager.DesignViewRepresentations.Item("TEST").Activate
Next
Any help would be greatly appreciated.I've also attached photos
Solved! Go to Solution.