標註型式取代 (DXF)

標註型式取代可套用於標註、引線以及公差圖元。套用於這些圖元的任何取代,都會成為延伸資料儲存於圖元中。取代後的標註變數群組碼及其相關值均包含於群組 1002 控制字串內。以下範例展示標註圖元 (其中的系統變數 DIMTOL 與 DIMCLRE 已被取代) 的延伸資料。

(setq diment (car (entsel))) ; Select dimension entity
(setq elst (entget diment '("ACAD"))) ; Get entity definition list
(assoc -3 elst) ; Extract xdata only  

此字碼將傳回:

(-3 ("ACAD" Start of the ACAD APPID section of xdata
  (1000 . "DSTYLE") (1002 . "{") Beginning of the dimstyle subsection
  (1070 . 177) (1070 . 3) The DIMCLRE (code 177) override + value (3)
  (1070 . 71) (1070 . 1) The DIMTOL (code 71) override + value (1)
  (1002 . "}") )) End dimstyle subsection and ACAD section