Nov 12, 2011 #1 IFRs Petroleum Joined Nov 22, 2002 Messages 4,680 Location US I'm looking for an editable program LISP (preferably) or VB that will place a block at every vertex of selected polylines. Anything out there?
I'm looking for an editable program LISP (preferably) or VB that will place a block at every vertex of selected polylines. Anything out there?
Nov 12, 2011 #2 CarlB Civil/Environmental Joined Jul 11, 2001 Messages 1,194 Location US Here are some: http://forums.augi.com/showthread.php?t=39710http://forums.augi.com/showpost.php?p=1099803&postcount=5http://www.cadforum.cz/cadforum_en/download.asp?cat=33 (VerticesBlk) Upvote 0 Downvote
Here are some: http://forums.augi.com/showthread.php?t=39710http://forums.augi.com/showpost.php?p=1099803&postcount=5http://www.cadforum.cz/cadforum_en/download.asp?cat=33 (VerticesBlk)
Nov 13, 2011 Thread starter #3 IFRs Petroleum Joined Nov 22, 2002 Messages 4,680 Location US Thanks. I should have Googled before posting. I got this one: ; Insert the block Weld at each polyline vertex (defun c:wb () (setq plobj (car (entsel "\nSelect Polyline: ")) inc 0 ) (while (<= inc (vlax-curve-getEndParam plobj)) (command "_.insert" "weld" (vlax-curve-getPointAtParam plobj inc) "" "" "" ) (setq inc (1+ inc)) ) ) Upvote 0 Downvote
Thanks. I should have Googled before posting. I got this one: ; Insert the block Weld at each polyline vertex (defun c:wb () (setq plobj (car (entsel "\nSelect Polyline: ")) inc 0 ) (while (<= inc (vlax-curve-getEndParam plobj)) (command "_.insert" "weld" (vlax-curve-getPointAtParam plobj inc) "" "" "" ) (setq inc (1+ inc)) ) )
Nov 13, 2011 #4 CarlB Civil/Environmental Joined Jul 11, 2001 Messages 1,194 Location US That appears to do the job with a minimum of code. You might want the code to disable then re-enable osnaps; in some cases/zoom levels the insert point might go to wrong location. If a UCS is active, that too could caue errors. Upvote 0 Downvote
That appears to do the job with a minimum of code. You might want the code to disable then re-enable osnaps; in some cases/zoom levels the insert point might go to wrong location. If a UCS is active, that too could caue errors.