刚才在本站找到如下代码应该能实现,可是我不懂lisp,哪位大侠帮忙用vba解释一下 (defun checkarc (ename) (setq obj (vlax-ename->vla-object ename)) (setq plist (vlax-safearray->list (vlax-variant-value (vla-get-coordinates obj)))) (setq n 0 bu nil) (repeat (/ (length plist) 2) (if (/= (vla-getbulge obj n) 0) (setq bu T) ) (setq n (+ n 1)) ) bu ) |