Message 1 of 3
Multiple Sweep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All I have found the following code on this forum but need it modified to select object (closed polyline, block or region) instead of using circle with dia. Any help much appreciated. (defun c:M-Sweep (/ cir diam1 hnd itm num ss) (if (= diam nil) (setq diam 0.25);; change the 0.25 to the diameter you use most );; if (setq diam1 (getreal (strcat "\Enter the tube diameter < " (rtos diam 2 4) " >: ") ) ) (if (= diam1 nil) (setq diam1 diam) (setq diam diam1) );; if (prompt "\nSelect the sweep paths: ") (if (setq ss (ssget '((0 . "LINE,*POLYLINE,3dpoly")))) (progn (setq itm 0 num (sslength ss) ) (while (< itm num) (setq hnd (ssname ss itm)) (entmakex (list (cons 0 "Circle") (cons 10 '(0.0 0.0 0.0)) (cons 40 (/ diam 2)) ) ) (setq cir (entlast)) (command "sweep" cir "" hnd) (setq itm (1+ itm)) );; while );; progn );; if (princ) );; M-Sweep Evan