AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unhandled Exceptions error when querying using vb.net

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
mapworks26
512 Views, 3 Replies

Unhandled Exceptions error when querying using vb.net

 

I have a piece of code that will attach a file the, zoom to the extents and  preview it. It works fine, but if a call another program that attaches and queries a drawing then go back and call this one I get my Unhandled Exceptions error. I deactivate any drawing before I attach another.

I tried to Catch it but that doesn't work. In the attachment is a screen shot of the error and the sub where it bombs at the

dwgAttached.Preview() line. Any suggestions would be appreciated.

3 REPLIES 3
Message 2 of 4
Partha.Sarkar
in reply to: mapworks26

Hi,

 

but if a call another program that attaches and queries a drawing then go back and call this one >>>

 

What is this another program ? Another Application running in Map 3D ?

Can you check the values of dwgAttached ?

And check if the "Key.dwg" is opened / locked etc.

 

Thanks,

Partha Sarkar

Autodesk



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
mapworks26
in reply to: Partha.Sarkar

Partha,

Thanks for getting back. Your questions got me to thinking about the
Key.dwg drawing. I moved it from the server to my local machine and it
solved my problem.

thanks,
Rod
Message 4 of 4
Partha.Sarkar
in reply to: mapworks26

Glad to know that 🙂

 

Cheers,

Partha



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost