本帖最后由 zml84 于 2013-3-27 13:16 编辑
 - ;;;指定标注对象,获取全局比例
- ;;;可支持 引线标注
- (and (setq en (car (entsel "\n请点取标注对象: ")))
- (or (and (setq tmp (cdadr (assoc -3 (entget en '("ACAD")))))
- (setq tmp (member '(1070 . 40) tmp))
- (setq tmp (cdr (assoc 1040 tmp)))
- )
- (and
- (setq tmp (tblsearch "DIMstyle" (cdr (assoc 3 (entget en)))))
- (setq tmp (cdr (assoc 40 tmp)))
- )
- )
- (print tmp)
- )
|