I am having some difficulty in finding information on how to close AutoCAD from my VB.NET code. I open it, create a drawing, save and close the drawing, and now I need to close AutoCAD.
I'm using VB 2010 Express and here is the code which launches AutoCAD.
Dim vAcadApp As AutoCAD.AcadApplication Dim vAcadDoc As AutoCAD.AcadDocument vAcadApp = New AutoCAD.AcadApplication vAcadApp.Visible = True
After the drawing is closed I need some way of closing down AutoCAD.
Thank you for your reply. That worked, but I think I must find another location to place it because the LISP program which prepares the drawing did not seem to finish before AutoCAD shutdown. Or at least when I opened it up the drawing was missing quite a few lines which would normally have been there.
I tried using System.Threading.Thread.Sleep(10000) and that seemed to have helped but one of the blocks which gets inserted is all out of scale. I will have to play around with this some more but many thanks for your reply.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register