只需一步,快速开始
01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26.
;等宽倒角 (defun C:EF_CHAMFER ( / e ename pt edata echo) (setq echo (getvar 'cmdecho)) (if (and (setq e (entsel)) (setq pt (cadr e)) (setq ename (car e)) (setq edata (entget ename)) (setvar 'cmdecho 1) ) (if (and (= (cdr (assoc 0 edata)) "LWPOLYLINE") (setq w (cdr (assoc 43 edata))) ) (progn (command "CHAMFER" (vlax-curve-getClosestPointTo ename pt)) (while (/= 0 (getvar 'CMDACTIVE)) (command pause)) (command "PEDIT" ename "W" w "") (setvar 'cmdecho echo) ) (progn (command "CHAMFER" e) (setvar 'cmdecho echo) ) ) ) (princ) )
;等宽圆角 (defun C:EF_FILLET ( / e ename edata echo pt) (setq echo (getvar 'cmdecho)) (if (and (setq e (entsel)) (setq pt (cadr e)) (setq ename (car e)) (setq edata (entget ename)) (setvar 'cmdecho 1) ) (if (and (= (cdr (assoc 0 edata)) "LWPOLYLINE") (setq w (cdr (assoc 43 edata))) ) (progn (command "FILLET" (vlax-curve-getClosestPointTo ename pt)) (while (/= 0 (getvar 'CMDACTIVE)) (command pause)) (command "PEDIT" ename "W" w "") (setvar 'cmdecho echo) ) (progn (command "FILLET" e) (setvar 'cmdecho echo) ) ) ) (princ) )
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-11-14 14:46 , Processed in 0.271402 second(s), 26 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.