Message 1 of 4
Select Multiple Browser Nodes in Drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have code which will find a browser node of a model part in the drawing environment. I then use the following code to turn on hidden lines for the selected node:
'Dim oNode As BrowserNode oNode.Expanded = True oNode.DoPreSelect() oNode.DoSelect() Dim oControlDef As ControlDefinition oControlDef = oCommandMgr.ControlDefinitions.Item("DrawingBodyHiddenLinesCtxCmd") oControlDef.Execute2(True)
This works fine but I have to select one node at time then run the command as '.DoSelect' doesn't appear to allow multiple nodes to be selected.
This is really slowing down my drawing update as I have to show hidden lines for about 30 components (across multiple views).
Is there a way to select multiple nodes at once?
(then I could just run the hidden lines command once)
I tried using SelectSet but could not get this to work 😞
Any help is greatly appreciated,
thanks,
John