961| 8
|
[提问] 将多段线偏移成指定宽度的填充 |
50明经币
最佳答案(defun c:tt5 (/ d l l1 l2 l3 obj obj1 pt);;偏移填充->删除边线和原对象
(setvar "cmdecho" 0)(command "undo" "be")
(setq d (getdist "\n指定偏移距离:") l (car (entsel "\n请选择对象:")) obj (vlax-ename->vla-object l) pt (getpoint"\n偏移点 或 [居中(空格)]:"))
(if pt (progn (command "offset" d l "non" pt "") (setq obj1 (vlax-ename->vla-object (setq l1 (entlast))))) (progn (vla-Offset obj (* d 0.5) ...
| ||
发表于 2022-11-25 13:28:40
|
显示全部楼层
点评
完美实现了功能!感谢!!!
评分 | ||
点评
(vla-Delete obj) 把这一句去掉
| ||
| ||
发表于 2022-11-29 21:11:20
|
显示全部楼层
评分 | ||
| ||