为了深入了解注释性数据的存储位置,以下函数将返回与给定多重引线图元关联的所有注释性比例:
- (defun getmleaderannoscales ( ent / dic enx itm rtn )
- (if
- (and
- (setq enx (entget ent))
- (setq dic (cdr (assoc 360 (cdr (member '(102 . "{ACAD_XDICTIONARY") enx)))))
- (setq dic (cdr (assoc -1 (dictsearch dic "acdbcontextdatamanager"))))
- (setq dic (cdr (assoc -1 (dictsearch dic "acdb_annotationscales"))))
- )
- (while (setq itm (dictnext dic (not itm)))
- (setq rtn (cons (cdr (assoc 300 (entget (cdr (assoc 340 itm))))) rtn))
- )
- )
- (reverse rtn)
- )
- _$ (getmleaderannoscales (car (entsel)))
- ("1:1" "1:4")
|