Intro:
AutoLISP is a dialect of Lisp programming language built specifically for use with the full version of AutoCAD and its derivatives, which include AutoCAD Map 3D, AutoCAD Architecture and AutoCAD Mechanical.[1] Neither the application programming interface nor the interpreter to execute AutoLISP code are included in the AutoCAD LT product line.
read more:
AutoLISP - Wikipedia, the free encyclopedia
Kinsay familiar ninyo og LISP, especially sa AutoCAD?
see sample code below, mao ni osa sa akong mga ona nga simple
code nga ako gamit, ma automate ni niya pag insert sa akong
block nga instrument bubble with leader line nya etrim automatic ang line.
Code:
(defun c:test () ;;Define command which is test
(setvar "osmode" 0)
(setvar "orthomode" 0)
(setq p1 (getpoint "\nFirst point.")) ;;store the coordinates to symbol p1
(command "-insert" "BLOCKNAME" p1 "1" "1" "0") ;;autocad's insert block
(command "_line" p1 pause "") ;;autocad's line command
(command "trim" p1") ;;autocad's trim command
(setvar "osmode" 1 ) ;;set variable for Object Snap Mode to 1, which is 1 = ON while 0 = OFF
(setvar "orthomode" 1) ;;set variable for Orthographic Mode to 1, which is 1 = ON while 0 = OFF
(princ)
)
kung naka operate naka og Autocad i guess familiar mo sa "trim" "line" og "insert" nga command.
but mostly cguro wala kabalo nga naa diay ingon ani ang Autocad.
kato mga CAD operator / draftsman nganha, ari ta ngare share2x ta ninyo.