
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody.
I am trying to write a macro that should do the following:
1) The user selects an Component (Part or Assembly) in the Browser
2) The user run the macro and this expandes the Origin of the selected component.
I tried to do this using a ComponentOcurrence Definition but I cannot get this to work. The macro shows no errors but it does not change the Expanded Status from False to True.
Has anyone any idea why?
Sub ExpandUrsprung()
On Error Resume Next
Dim oOcc As ComponentOccurrence 'just necessary to select
Set oOcc = ThisApplication.ActiveDocument.SelectSet(1)
Dim a As Inventor.BrowserNode
oOcc.Definition.Document.BrowserPanes.Item("Modell").topNode.BrowserNodes.Item("Ursprung").Expanded = True 'set the Expanded Value of the Origin (Ursprung) to True
End Sub
Thank you very much!
Solved! Go to Solution.