filmov
tv
AutoLisp area of a rectangle
Показать описание
AutoLisp is used to define a function that gets the area of a rectangle by clicking the corners of the rectangle. The getpoint built-in function in autolisp is used to get the corner co-ordinates, and the standard car cdr commands are used to extract the x and y values. The correctness of the program is verified using the built-in hatch command of autocad. Finally, a function is defined which can be called from the command line of autocad.
0:00 start
0:35 getpoint command
2:20 rectangle area
2:50 verification
3:20 autolisp function
#autolisp #area #getpoint
0:00 start
0:35 getpoint command
2:20 rectangle area
2:50 verification
3:20 autolisp function
#autolisp #area #getpoint