AutoCAD 2000/2000i/2002 Archive

AutoCAD 2000/2000i/2002 Archive

Reply
Contributor
asifmnm
Posts: 13
Registered: ‎02-23-2005
Message 1 of 3 (258 Views)

How to Write the Code for *.scr files

258 Views, 2 Replies
02-28-2005 02:35 AM
Hellow!

I come to know about the script command this could be helpful for me if i could know how to write the code for script files. Any one can help me that will be more use if any *.scr file send to me then i will find out my answer very easily. Thanks for reading.
Thanks!
Asif
New Member
JNOBLE12
Posts: 2
Registered: ‎12-16-2009
Message 2 of 3 (258 Views)

Re: How to Write the Code for *.scr files

12-16-2009 09:31 AM in reply to: asifmnm
I want to start AutoCAD withuot creating a new drawing (Drawing1.dwg).
How to creat script file called CLOSE.SCR.

_CLOSE Enter


Julia
*A+P
Message 3 of 3 (258 Views)

Re: How to Write the Code for *.scr files

12-21-2009 11:09 AM in reply to: asifmnm
Try this and save it in a file called CLOSE.SCR:

(if(not(zerop(getvar"dbmod")))(command"_.CLOSE""_N")(command"_.CLOSE"))

Note: there is an empty line after the first to respresent a Return

Then at the command line, enter the SCRIPT command and select CLOSE.scr

Paul

wrote in message news:6305819@discussion.autodesk.com...
I want to start AutoCAD withuot creating a new drawing (Drawing1.dwg).
How to creat script file called CLOSE.SCR.

_CLOSE Enter


Julia
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.