Message 1 of 3
How to select the open file in Model Browser?

Not applicable
03-30-2011
11:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
With this piece of code I am able to select an occurance in the Model Browser.
But not the main assy, like in this picture... how can I do?
Public Sub teer()
Dim oapp As Inventor.Application
Set oapp = GetObject(, "Inventor.Application")
Dim odoc As AssemblyDocument
Set odoc = oapp.ActiveEditObject
Dim oPane As BrowserPane
Set oPane = odoc.BrowserPanes.Item("Model")
oPane.TopNode.BrowserNodes.Item(7).DoSelect
End Sub