Code Red > AutoLISP (Vanilla / Visual)

objects connected via pline

(1/5) > >>

mbrandt5:
 :mrgreen:
So does anyone know of a lisp that exists that will do the following...trying to save myself the hassle of writing the code and scrambling the web.

-Prompt you to select multiple objects (Objects A)
       (Extract the base points of Objects A) -Store those Base points

-Select Object B
       (Extract the base points of Object B) -Store that Base point

-Draw polylines from basepoint of Objects A to base point of Object B via  90 degree angles

...A bonus would be if it did all of this within a selected polyline


Lee Mac:
A sample image/drawing would help  :-)

mbrandt5:
Sorry about that

- The Circles with A, are the group A objects (blocks)
- The Rectangle is the group B object
(The blue line is the polyline I was referring to that the lines would hopefully stay within, also if they followed same paths that'd be cool)

The ideal lisp would autopopulate the plines between the two groups

mbrandt5:
If there isn't anything similar....

If anyone could suggest a reference lisp for the three things I'd need to figure out which would be...

1.Drawing a PLine to the x coordinate or y coordinate of object b...which with polar snap of 90 degrees maybe just entering the x and y coordinate would work??
This did not work by the way, would perfer to do this without extracting changing to numbers and subtracting "If possible"

2. Keeping the populated lines in the object?

3.Making the PLines turn? with other PLines?
Assuming it'll take estraction and subtraction of coord.s

ronjonp:
So in your example, is object 'b' the base and is there only one? There are a few different routes at 90 degree angles.

Navigation

[0] Message Index

[#] Next page

Go to full version