- ;; 绘制零件侧视图
- (defun c:tt ()
- (setq hh (Udist 7 "" "厚度<输入或鼠标直接量取>" hh nil))
- (if (setq s1 (car (entsel "\n请选取要加侧视图的物件: ")))
- (progn
- (setq p1 (xyp-9pt s1 1)
- p9 (xyp-9pt s1 9)
- p3 (xyp-9pt s1 3)
- la (xyp-DXF 8 s1)
- p11 (xyp-Pt2Y p1 -1000)
- p31 (xyp-Pt2Y p3 -1000)
- p32 (xyp-Pt2Y p31 (- hh))
- p33 (xyp-Pt2X p3 1000)
- p91 (xyp-Pt2X p9 1000)
- p92 (xyp-Pt2X p91 hh)
- p12 (xyp-Pt2Y p11 (- hh))
- p34 (xyp-Pt2X p33 hh)
- )
- (xyp-MkLa la)
- (xyp-rectang p11 p32)
- (xyp-rectang p33 p92)
- (xyp-MkLaCo "DIM" 3)
- (xyp-dim-hor p12 p32 (xyp-Pt2Y p12 -1000))
- (xyp-dim-ver p34 p92 (xyp-Pt2X p34 1000))
- )
- )
- (princ)
- )
|