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.
Solved! Go to Solution.
Solved by Partha.Sarkar. Go to Solution.
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
Glad to know that 🙂
Cheers,
Partha