尝试
- (defun C:test (/ P1 P2 P3)
- (while (setq P1 (getpoint "\nSpecify insert point for arrow: "))
- (command "_-Insert" "BLOCKA" P1 "1" "1" pause )
- (setq P2 (cadr (grread T)))
- (setq P3 (polar P1 (angle P1 P2) 2.2453))
- (command "_pline" P1 P3 "_A" pause "")
- (command "_-Insert" "BLOCKB" pause "1" "1" "0")
- (command "_EXPLODE" "_L")
- (command "_ddedit" "_L" "")
- (command "._move" "_L" "" pause pause)
- )
- (princ)
- )
|