trying to use LISP to send block lines to layers

trying to use LISP to send block lines to layers

Anonymous
Not applicable
953 Views
1 Reply
Message 1 of 2

trying to use LISP to send block lines to layers

Anonymous
Not applicable

I am trying to use LISP to send block objects to layers.  The attached LISP and dwg are driving me nuts.  Every time I try and run it, the operation halts with the block editor open.  I have several suspicions as to what the problem might be, but I think it's time to raise that white flag and ask for help.

 

The block also has polylines in it.  I've got that part handled, but I stripped it out temporarily to focus on just lines.  I suspect there's an error in how I'm using the ssget function, or how I'm trying to select the lines based on the coordinates for the x coordinates of the lines' beginning vertices.

 

Bottom line is: I need to send block lines to layers based on their starting coordinates.  Thanks in advance for any help!

0 Likes
Accepted solutions (1)
954 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Bingo, found it!  I went back and checked some of my other LISP files; I had to use "vlax-get b 'startpoint" instead of 'coordinates.

0 Likes