ComException was unhandled

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi to all!!!
I have this problem running an app with vb.net 2010 and autocad 2014, this app was developunderf vb6 and autocad 2002 and I made little changes to make it work with autocad 2014 using vb.net 2010 but keeps this error i tried to figure out but still the error,
Can you help me with this?
this is the code:
Dim dpuntos(0 To 11) As Double
dpuntos(0) = 0 : dpuntos(1) = 0 : dpuntos(2) = 0
dpuntos(3) = CType(txtTankD.Text, Double) : dpuntos(4) = 0 : dpuntos(5) = 0
dpuntos(6) = CType(txtTankD.Text, Double) : dpuntos(7) = CType(txtOilLevel.Text, Double) : dpuntos(8) = 0
dpuntos(9) = 0 : dpuntos(10) = CType(txtOilLevel.Text, Double) : dpuntos(11) = 0
acuadro = adDibujo.ModelSpace.AddPolyline(dpuntos)
acuadro.Closed = True
and it crash on acuadro= adDibujo.modelspace.addpolyline(dpuntos)
Can someone take a look and help me?
Thanks for your reply.