02-17-2024
08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-17-2024
08:26 AM
With all respect, there is at least one uncertainty,
Origin BrowserFolder is not guaranteed to have the label "Origin" even in English UI (believe or not but it is user customizable - one can rename it after just two clicks!!).
Professional code should not rely on customizable Label. I suggest to use something like:
Dim origWPt = oDoc.ComponentDefinition.WorkPoints(1)
Dim origWPtNBND As NativeBrowserNodeDefinition = oDoc.BrowserPanes.GetNativeBrowserNodeDefinition(origWPt)
Dim origWptNode As BrowserNode = topNode.AllReferencedNodes(origWPtNBND).Item(1)
Dim oOriginNode As BrowserNode = origWptNode.Parent
Please vote for Inventor-Idea Text Search within Option Names