Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
AutoLISP function that draws a line between two hardcoded points in AutoCAD.
(defun c:DRAWLINE ()
(command "_LINE" '(0 0) '(100 100) "")
(princ "Line drawn from (0,0) to (100,100).\n")
(princ)
)AutoLISP is a dialect of the LISP programming language built for automating tasks and customizing functionality within Autodesk AutoCAD. It enables users to create scripts, routines, and functions that extend AutoCAD’s capabilities for design, drafting, and drawing automation.
Origin & Creator
Developed by Autodesk based on the LISP language to enable programmatic customization and automation of AutoCAD workflows.
Industrial Note
Essential for CAD managers, BIM coordinators, and design engineers who need repeatable, scriptable solutions for complex CAD tasks.