Print Page | Close Window

edit quit and close macro

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11025
Printed Date: 31.May.2026 at 23:18


Topic: edit quit and close macro
Posted By: Sandervp
Subject: edit quit and close macro
Date Posted: 03.Mar.2015 at 13:19
Is it possible to add a command to the ctrl+q (quit autocad) and the close drawing (right-top cross window) functions?

Because I need to save and quit the drawings at the moment the visretain variable = 0.
But because I need to switch between several drawings every time I save, this variable = 1.

The drawings are external references from each other.

Drawing 1 is laying beneath drawing 2 and vice versa.

I want to see the changes that I have made in drawing 1, at drawing 2 and vice versa.

Because a lot of layers are freezed, they will not appear after reload the xref every time. 


But after I am finished with drawing and somebody else is opening the drawing, he needs to see every layer in the drawing.

Is this possible, or do I need to change my visretain setting every time and time again before I quit drawing?




Print Page | Close Window