Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
here is my Idea I want to realise.
- I placed an Assambly on my drawing
- In one Part of the Assambly i switch a Sketch to visible
- Now I want A: switch this Sketch between visible or NonVosible with iLogic
I have an sample, where I find this Sketch in Browsernodes:
Sub Main() Dim oDrwDoc As DrawingDocument oDrwDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDrwDoc.ActiveSheet Dim oBrowserPanes As BrowserPanes oBrowserPanes = oDrwDoc.BrowserPanes Dim oBrowserNode As BrowserNode oBrowserNode = oBrowserPanes.Item(1).TopNode.BrowserNodes.Item(2).BrowserNodes.Item(3).BrowserNodes.Item(1).BrowserNodes.Item(7).BrowserNodes.Item(7) oBrowserNode.Visible = False ' makes only the BrowserNode Unvisible and not the sketch in Drawing 'oBrowserNode.DoSelect ' select the Browsernode End Sub
When I go to switch Visible = False Only the Browsernode will go to invisible.
With "oBrowserNode.DoSelect" I can select the BrowserNode, but I can't find a way to make the sketch invisible like I do it with the kontextmenue by my self.
Any Idea?
Greatings Christoph
Solved! Go to Solution.