PDA

View Full Version : Script File



vinod
25th Oct 2007, 10:27 am
How can I create script file in AutoCAD ?
Please help me..:(

ReMark
25th Oct 2007, 10:51 am
You would use a text editor such as Windows Notepad to create a file with the .scr file extension. Here's an example:

vslide
plan
delay 3000
vslide
elevation
delay 3000
vslide
section

The Vslide command is executed before each slide and is followed by the instruction delay 3000. This instructs AutoCAD to pause roughly 3000 milliseconds after each Vslide command. This value can be adjusted up/down to suit your viewing preferences.

To get your slides to loop continuously, add the Rscript command at the very end of your file. To stop a repeating script just press the Backspace key.

To activate your script file go to Tools / Run Script.

Hedgehog
25th Oct 2007, 11:16 am
Yup... as Remark says... or if it's just a simple, repetitive set of commands you could assign a button using the CUI to script it all... the text in my siggy is an example of a rather bad script that you wouldn't want to run but you get the idea :D

Raggi_Thor
25th Oct 2007, 11:57 am
Bricscad ("my" acad clone) has a script recorder :-)

Otherwise, run your commands by hand on the command line first, remember "-" to bypass dialog boxes, -layer, -insert, -block and so on. Then you can review or copy the text window to the script file in notepad or simmilar.

Alan Cullen
25th Oct 2007, 12:26 pm
Hey, Raggi,

Why put your site in your signature, when it's all double dutch (or in your case, double Norwegian) to us? :twisted:

I'm sitting here waiting for Tiger to sort something out, and thought I'd kill some time kooking at your site. A lot of good that did me. :lol: :lol: :lol: Now I'm back to twiddling my thumbs, and writting posts like this. :P

Raggi_Thor
25th Oct 2007, 12:32 pm
I am serving the local market :-)

Raggi_Thor
25th Oct 2007, 12:35 pm
Eerrr,

I was going to change my signature, so the link would be,
http://www.designdata.no/English.htm

Working on it :)

fuccaro
25th Oct 2007, 06:51 pm
Vinod
Tell us more about what you are after and we will be able to point you closer to your target.