CAD software discussion forum > CAD > AutoCAD close all open drawings in CAD, how to do that with VBA code?

AutoCAD close all open drawings in CAD, how to do that with VBA code?

Rank: 1

Marijan Glavac

Newbie

posts: 0

Registered: 2011-6-5

Message 1 of 4

 AutoCAD close all open drawings in CAD, how to do that with VBA code?
05-04-2011 10:23 . pm | View his/her posts only
I try to close all open drawings with one click on button with this code :

Sub cmdCloseAll_Click()
Dim SviOtvoreniNacrti As ZwcadDocument

For Each SviOtvoreniNacrti In ThisDocument.Application.Documents
SviOtvoreniNacrti.Close
Next
End
End Sub



Program close all open drawings but each time ZWCAD 2011 crashes down .

Any idea ?

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 2 of 4

05-04-2011 10:23 . pm | View his/her posts only


Hi magla, Can you tell me your ZWCAD version number?


We tested in 2011.02.08(16566) and it do crash, so we have submitted the crash report to R&D, the Bug ID is 15601, you can keep it for further inquery. Thanks!

Rank: 1

Marijan Glavac

Newbie

posts: 0

Registered: 2011-6-5

Message 3 of 4

06-04-2011 04:27 . am | View his/her posts only
VERNUM = "2011.02.28(16649)"

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 4 of 4

22-09-2011 02:44 . am | View his/her posts only
hi magla, ZWCAD 2012 Beta released recently, if this crash problem still happen, please let me know.




Try ZWCAD+ free for 30 days:
http://www.zwsoft.com/zwcad+
See also