 - (defun c:j()
- (prompt "\n j:矩形")
- (setq cmd (getvar "cmdecho"))
- (setvar "cmdecho" 0)
- (setq pa (getpoint "\n请指定基点:"))
- (setq ww (getdist "\n宽度:"))
- (setq hh (getdist "\n高度:"))
- (setq pb (polar pa 0 ww))
- (setq pc (polar pb (* pi 1.5) hh))
- (setq pd (polar pc pi ww))
- (setq osm (getvar "osmode"))
- (setvar "osmode" 0)
- (command "_pline" pa pb pc pd "c")
- (setvar "osmode" osm)
- (setvar "cmdecho" cmd)
- (princ)
- )
|