
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm at the very last step of a lengthy LISP for coloring lines in a block. I need to have the LISP assign lines to layers based on their horizontal position within the whole group of lines, from right-to-left. I can't get the very last step right, it will only work from left-to-right. (These blocks will always have their basepoints at the top-right, if that matters...)
It has to be something in the vl-sort portion of my code, but I've tried changing the less-than/greater-than back and forth, but no luck, always ends up being left-to-right.
I also tried using that portion of the code right in the ACAD command line with coordinates that correspond to the lines in the block, and when I swap the sign, it cooperates and lists the points in the correct order.
But of course, the LISP itself is not cooperating. Can someone help me get over this hump? Thanks in advance!
Solved! Go to Solution.