Is there a scripting language option for AutoCAD, similar to OpenSCAD?

Is there a scripting language option for AutoCAD, similar to OpenSCAD?

benasitellu
Observer Observer
512 Views
2 Replies
Message 1 of 3

Is there a scripting language option for AutoCAD, similar to OpenSCAD?

benasitellu
Observer
Observer

I've gotten pretty good with OpenSCAD, to the point where I would rather create my basic object with scripting than with a GUI. Although I can see the benefits of a GUI for certain things. Is there a way or ways to script an object into existence in AutoCAD, then edit it further from there https://speedtest.vet/ https://vidmate.bid/  ?

0 Likes
513 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant

Hi,

AutoCAD incl. multiple APIs and there is an internal Macro Recorder, you can write menu macros and you can write Scripts (.scr), what are simple keyboard inputs in a row.

 

Sample

Open Notepad, write

CIRCLE

50,50

10

ZOOM

OBJECT

LAST

 

(2x enter after the word LAST)

SaveAs

filetype all

Test.scr

 

In AutoCAD, run SCRIPT command and select your TEST.scr file

 

Sebastian

0 Likes
Message 3 of 3

paullimapa
Mentor
Mentor

As @cadffm replied yes AutoCAD supports scripts and you can read about that here

Awhile back I also wrote on this topic here


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes