CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedELIMINATE pan/zoom commands from triggering save?

 Post Reply Post Reply Page  <12
Author
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 11.Jan.2012 at 18:31
Scripts are not files that you download.  They are files individual users create to satisfy their own needs.  Here is a simple script I wrote that opens a drawing (1TA996.dwg), does a Zoom > Extents, executes an Audit and saves the drawing before closing it.

-open
c:\DWG\PIDs\1TA996
zoom e
audit y
qsave
close

This script I named as mysample.scr (SCR is the file extension for a script file).  I "call" this script from the AutoCAD command line by typing mysample.scr then pressing the Enter key.  The script runs.

I apologize for not being able to fully answer your question as I thought Vladimir had done so.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
tulip3D View Drop Down
Senior Member
Senior Member


Joined: 23.Jul.2009
Location: United States
Using: AutoCAD2011, Inventor2011
Status: Offline
Points: 427
Direct Link To This Post Posted: 11.Jan.2012 at 18:37
no no its all good JC...good info altogether.
 
But basically a script has to be made? and saved? and then called up?
 
But back to the basics, is there any way to disable acad from considering the pan and zoom commands worthy of a save all in all? that script idea seems good for the 'per dwg' occassion...i want a blanket change to the system...
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 11.Jan.2012 at 18:46
Made...saved...and then run.

I'm still searching for an answer.

How about a one button macro that closes the drawing and immediately answers "No" to the save changes dialog box?  It will NOT suppress the dialog box however.  For that I think you would need to do a bit of programming and I am not talking a script either.


Edited by John Connor - 11.Jan.2012 at 18:54
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 11.Jan.2012 at 18:59
The answer to your problem comes from ASMI.  He says that VBA can resolve the problem and offered up this:

Sub Close_Open()
ThisDrawing.SendCommand "open vbCr"
ThisDrawing.Close (False)
End Sub

Add the file to your Startup Suite and make a button macro ^C^C(vl-vbarun "Close_Open") to run it from within AutoCAD.


Edited by John Connor - 11.Jan.2012 at 19:00
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
tulip3D View Drop Down
Senior Member
Senior Member


Joined: 23.Jul.2009
Location: United States
Using: AutoCAD2011, Inventor2011
Status: Offline
Points: 427
Direct Link To This Post Posted: 11.Jan.2012 at 19:03
Hmmm...programming...sounds like a challange!! LOL
 
Thanks jc, great material!Thumbs%20Up
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,138 seconds.