🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
来自[链接](http://bbs.mjtd.com/forum.php?mod=viewthread&tid=168686&extra=page%3D3%26filter%3Dtypeid%26typeid%3D107&page=1) 效果图: ![](https://box.kancloud.cn/8df4f14c275a7124ef28ac6dbbbf1abb_730x532.gif) 源码: ``` ;调整填充基点及角度 ;2006以上支持快速基点修改 ;修改 OSOPTIONS 可控制是否忽略捕捉填充, ;by edata (vl-load-com) (defun c:ng:hatch-rotate (/ p ss en obj ang) (if (setq ss (ssget ":E:S" ' ( (0 . "hatch")))) (progn (setq en (ssname ss 0)) (setq obj (vlax-ename->vla-object en)) (if (vlax-property-available-p obj 'Origin) (setq p (getpoint "\\n指定新的填充基点:")) (princ "\\n该版本不支持快速更改填充基点....") ) (setq ang (getangle "\\n指定新的填充角度:")) (if p (vla-put-Origin obj (vlax-safearray-fill (vlax-make-safearray vlax-vbDouble ' (0 . 1)) (list (car p) (cadr p)) ) ) ) (if ang (vla-put-PatternAngle obj ang) ) (vla-update obj) ) ) (princ)) ```