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

This is the best I can come up with.

Dim app As Inventor.Application = ThisApplication
Dim doc As Document = app.ActiveDocument
Dim AllwaysOnComp = Component.InventorComponent("yourPartHere") 'change this to a part that never gets hidden
Dim selCmd As ControlDefinition = app.CommandManager.ControlDefinitions("AssemblyEnhSelComponentBBCmd")
doc.SelectSet.Select(AllwaysOnComp)
selCmd.Execute2(True)
Dim isoCmd As ControlDefinition = app.CommandManager.ControlDefinitions("AssemblyIsolateCmd")
isoCmd.Execute
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates