834| 4
|
[提问] 修改多段线中任一点的Z值 |
1明经币
最佳答案(defun c:tt3 ( / en en1 es es1 e10 e70)
(setq en (car(entsel)));LWPOLYLINE
(setq es(entget en))
(setq es1(vl-remove nil(mapcar '(lambda(x)(assoc x es))(list 8 62 6))))
(setq e10(vl-remove-if '(lambda(x)(/= 10(car x)))es))
(setq e38(cdr(assoc 38 es))K -1);原z
(setq e10(mapcar '(lambda(x)
(setq k(1+ k))
(cons 10(list(car x)(cadr x)(if(= k 0)10.5 e38))))
;第一个点z改 ...
| ||
发表于 2022-9-24 00:18:58
|
显示全部楼层
| ||
| ||
| ||