- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Full disclosure: I am sorry to those who saw this before... I posted this a few days ago, but it was under an already solved question I had, and it might not have triggered people to look because it was already marked as solved. I am putting it under a new topic in the hope that someone will be able to help.
I need to run the command "edit view" from under the view representation (it's under right click on a view representation). I got a long list of inventor commands, but this is not in the list I have. Is there a command we can call to run this "edit view" from code?
I would run this, except I would replace the "AssemblyVisibilityCtxCmd" with actual command for "edit view". This would have to be run from the "active" view representation:
Dim oControlDef As ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyVisibilityCtxCmd") oControlDef.Execute()
If this command is not available to run from code, I created a keyboard shortcut in Inventor to run it. I assigned "ctrl+E" to run the "edit view" command. It works when I do the keystroke manually, but it does not from code.
Here's the code I have for this (I tried many variance on the brackets and whatnot but I can't make it work):
AppActivate(ThisApplication.Caption) System.Windows.Forms.SendKeys.SendWait("{^E}")
Would anyone be able to help me, with either one of these solutions?
Solved! Go to Solution.