Example from vb.net:
-assumes that app has been acquired previously as the viewdraw application
Sub select_net_by_id(id As String)
Dim success As Boolean
Dim name As String
name = app.GetProjectData.GetiCDBDesignRootBlock(app.GetActiveDesign())
success = app.SelectNet(name, "", id)
If success = True Then
I verified that this actually does work. It selects the first instance of the net with that ID.
Thanks for the response Patrick. The method 'SelectNet' does indeed work. I filed an SR and Mentor responded in kind. However, it's not documented. How did you find out about it?
I use vb.net, with the Sharp Develop IDE. Once the COM object is referenced, all of the available functions, methods, and so on are visible when you begin to type, such as app.Sel... It was in the list, so I tried it. This can work as long as the parameters are not too hard to figure out. Many of the parameters in DxDesigner are left-overs from long ago when the architecture of the tool was very different, so you have to be careful using undocumented functions.
It would be nice if Mentor would expose the REAL net object (the one they use) to automation. The primitive and clumsy methods of the net segments, labels, and all of that are a pain.
You paid too much