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

iLogic or VBA to Select via "Component Offset" the "Isolate"

ferrisb
Collaborator

iLogic or VBA to Select via "Component Offset" the "Isolate"

ferrisb
Collaborator
Collaborator

Greetings All,

I'm setting up a for to resize a box with stiffeners.  (which I am using a simple example)

After someone runs the re-size, I want it to trigger an event to;

Select via "component offset" then "isolate"

I personally think it's easy enough to do manually in a few seconds, but, that's what I have been tasked with.

 

Here's a video showing how I would do this manually after a re-size.

If anyone could take a look and give me some direction on how to do this, it would be much appreciated : )

https://autode.sk/2Rndl5t

 

 

 

 

0 Likes
Reply
517 Views
3 Replies
Replies (3)

clutsa
Collaborator
Collaborator

This isn't the exact same thing but it reminds me of what you're doing. Take a look and let me know if it can work.

https://forums.autodesk.com/t5/inventor-customization/turn-off-visibility-off-all-parts-in-an-area/m...

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

0 Likes

ferrisb
Collaborator
Collaborator

Correct, I'm trying to get the same thing but think it is much simpler using the component offset selection then isolate like in the video.

 

0 Likes

clutsa
Collaborator
Collaborator

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

0 Likes