【发布时间】:2020-08-20 14:49:56
【问题描述】:
所以我有这个代码:
(setq ss (ssget "X" '((0 . "LWPOLYLINE") (90 . 4) (-4 . "&=") (70 . 1) )))
;Selecteaza toate Polyline-urile cu 4 colturi, si care sunt inchise.
(setq n 0
var (getpoint "Select where to order rentagles")
)
(repeat (sslength ss) ;Parcurge setul de selectie
(setq tent (entget (ssname ss n))
telem (assoc 10 tent)
listvar(cons 10 var))
(setq
tent(subst listvar telem tent)
)
(entmod tent)
(setq n (1+ n))
)
(princ)
)
虽然它的作用是,它只将任何矩形的左上角移动到我指定的点。如何对整个矩形执行相同操作,或者如何使用 dxf 代码更改其他角? 提前致谢!
编辑:我已阅读此“10 个顶点坐标(在 OCS 中),多个条目;每个顶点一个条目 DXF:X值; APP:二维点“ 如何使用顶点的其他条目?
【问题讨论】:
标签: lisp autocad autocad-plugin autolisp