Message 1 of 5

Not applicable
07-05-2017
01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm having troubles with finding the LISP routine I need.
I have found a LISP which creates a lwpolyline between two selected blocks, works perfect, but i want to modify it so I can select multiple blocks and let Autocad draw a polyline between them. I want to select one block as a base, and then select other blocks to draw (lw)polylines to.
This is the LISP I want to expand:
(defun c:l2b (/ ss) (if (and (setq ss (ssget '((0 . "INSERT")))) (eq (sslength ss) 2)) (entmakex (list '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(100 . "AcDbPolyline") '(90 . 2) (assoc 10 (entget (ssname ss 0))) (assoc 10 (entget (ssname ss 1))) (assoc 210 (entget (ssname ss 1))) ) ) ) (princ) )
Side node: I don't have any experience with programming in AutoCAD..
Any Help is appreciated.
Kind regards,
Martijn
Solved! Go to Solution.