[英]Autocad Autolisp variable Start Z / End Z
我們將從該行中提取 START Z 值的變量是什么。
例如 getvar "perimeter" - 獲取所選折線的長度
您需要從該行的 DXF 數據中獲取與 DXF 組 10 關聯的坐標列表。
您可以使用entget
function 獲取線實體的 DXF 數據:
(defun c:test ( / ent enx )
(if (setq ent (car (entsel)))
(setq enx (entget ent))
)
)
然后,您可以使用關聯assoc
獲取 DXF 組 10:
(defun c:test ( / ent enx )
(if (setq ent (car (entsel)))
(progn
(setq enx (entget ent))
(assoc 10 enx)
)
)
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.