- ;;;三点画斜向长方形:1、2点确定方向,3点确定对角线长度
- (defun c:test ()
- (command "ucs" "")
- (setq pt1 (getpoint "\n第一点 : ")
- pt2 (getpoint pt1 "\n第二点 : ")
- ang (rad2ang (angle pt1 pt2))
- )
- (command "ucs" "n" pt1)
- (command "ucs" "z" ang)
- (setq pt3 (getcorner (list 0 0) "\n对角点 : "))
- (command "rectang" (list 0 0) pt3)
- (command "ucs" "")
- (princ)
- )
|