Can you write a script in autocad that has a loop?

Hi I am new to CAD ANSWERS

Was wondering how would I make multiple shapes with dimensions and annotations using a script file? Any tutorials you recommend?

THANKS!

Asked on November 30, 2016 in AutoCAD.
Add Comment
2 Answer(s)

Hi there and Welcome to CAD ANSWERS

Welcome aboard 🙂

AutoCAD Scripts does not support loops,

 

you can however copy and paste your commands multiple times  OR use a script Automation tool like :

https://www.autoitscript.com/site/autoit/

AutoIt

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!

 

Hope this helps 😀

Answered on November 30, 2016.
Add Comment

I have had the same issue before, what you should do is, after first creating the script itself you can make .batch file that has a loop inside from which you can run the script several times,….

Answered on December 25, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.