scripts WRITING HELP

scripts WRITING HELP

Anonymous
Not applicable
993 Views
4 Replies
Message 1 of 5

scripts WRITING HELP

Anonymous
Not applicable

I HAVEN'T DONE ANY REAL SCRIPT WRITING SO I AM LOOKING FOR A SCRIPT THAT WHEN YOU CLOSE THE DRAWING IT WILL. 

 

RETURN TO PAPERSPACE

ZOOM EXTENTS

SET LAYER TO ZERO

SET VISRETAIN TO 1

PURGE THE DRAWING

LOCK VIEWPORTS

SAVE DRAWING 

CLOSE

 

 

THANK YOU

0 Likes
Accepted solutions (1)
994 Views
4 Replies
Replies (4)
Message 2 of 5

tcorey
Mentor
Mentor
Accepted solution

I don't think you want a script. I think you want a LISP routine with a reactor that is triggered by Close (or quit?).



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 3 of 5

Anonymous
Not applicable
Do you have a lisp routine for it
0 Likes
Message 4 of 5

JN05
Enthusiast
Enthusiast

Good morning,
The topic is very interesting. Did someone to write something like that or find a solution in the form of Lisp?

Tomasz Stawarz, Co-owner
ZNAK Gdańsk sp. z o.o.
Gdańsk, PL.
Tomasz Stawarz is co-founder and co-owner of ZNAK Gdańsk sp. z o.o., Gdańsk, PL. Tom's speciality is Civil Infrastructure and has been working with AutoCad since 1997.
0 Likes
Message 5 of 5

devitg
Advisor
Advisor

you ask for 

 

RETURN TO PAPERSPACE
ZOOM EXTENTS
SET LAYER TO ZERO
SET VISRETAIN TO 1
PURGE THE DRAWING
LOCK VIEWPORTS
SAVE DRAWING 
CLOSE

Should it be ?

 

RETURN TO MODEL SPACE 

 

Can be purge ALL , ??

 

 

Maybe , if you can upload a sample DWG, will be easy to help.