- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
iLogic or VBA to Select via "Component Offset" the "Isolate"
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 : )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Mass Override for Each Model State
Custom Glyph Icon for iMates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Mass Override for Each Model State
Custom Glyph Icon for iMates