Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Block.AddNet throws DISP_E_TYPEMISMATCH exception

$
0
0

Hello all,

 

I am trying to add nets to a DxDesigner schematic using Visual Basic .NET, but the following line throws 0x80020005 (DISP_E_TYPEMISMATCH) exception.

Dim net2 = app.ActiveView.Block.AddNet(80, 80, 100, 100, Nothing, Nothing, ViewDraw.VdBusOrWire.VD_WIRE)

 

I do not want to connect my nets anywhere yet. I have seen several vbscript examples where used Nothing as the pins argument, but it does not seems to be working from .NET.

I have also passed vbNull, 0 as those arguments.


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>