- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone
First post, so im hoping this is the right place.
What im trying to do: For a large assembly template with multiple configurations im trying to supress different subfolders based on the product code that is given to IV (Ilogic).
My brick wall: I cant seem to figure out how to cycle through subfolders. I know i can select folders that are "on top" using something like:
oApp = ThisApplication
oDoc = oApp.ActiveDocument
oPane = oDoc.BrowserPanes("Model")
oTopNode = oPane.TopNode
oSelectSet = oDoc.SelectSet
oSelectSet.Clear
oSelectSet.Select(oTopNode.BrowserFolders.Item("folder_level1"))
But since it will only look thought my topnodes it wont select a "folder_level2".
So i think i need some sort of traverse function that will:
-Open a top level folder
-Get all the nodes in that folder
-See if one of those nodes is a folder
-use that node to rinse and repeat.
according to inventor knowledgedesk:
Property that returns a collection of all browser folders contained directly under this node in the browser. |
Property that returns a collection of the top level BrowserNode objects contained under this node. |
so i figured i coould just do someting like: TopNode.BrowserFolders.BrowserNodes.BrowserFolders.BrowserNodes.Browserfolders.Item("folder_level3")
But it doesnt work like that since the BrowserFolders function returns a BrowserFolderEnumerator.
So any help on how to get from the BrowserFolderEnumerator to the node of the subfolder (i think that is the step to be taken) would be greatly appreciated
Inventor 2016
P.S. only help i could find on the forums was either top level or would involve the occurences in a subfolder, but i need the folder specifically
Solved! Go to Solution.