- (defun abc (s1 / ob on ent)
- "线性尺寸标注的角度"
- ;; (abc (setq s1(car(entsel"\n选择: "))))
- (setq ob (vlax-ename->vla-object s1)
- on (vla-get-objectname ob)
- ent (entget s1)
- )
- (cond ((= on "AcDbRotatedDimension") (cdr (assoc 50 ent)))
- ((= on "AcDbAlignedDimension")
- (angle (cdr(assoc 13 ent))(cdr (assoc 14 ent)))
- )
- )
- )
|