make 'lastpoint' Cur
I am looking for a quick lisp that will let me take the last selected point in my drawing and make that the current layer. Edit the code I wrote for you by taking the line that says (setvar "clayer" oldlayer) outor... why not use express tools' Laymcur command? Okay, that worked.I just don't know enough about editing lisp, to make any edits myself.
This was my other thought....
1. insert my block as normal, snapping to my line as I always do (atleast this way I can preview my block on my cursor, as I am inserting it)
2.run lisp that takes the layer of the 'lastpoint' and makes this my current layer or 'clayer'.
3.run 'laycur' command converting my 'last' block to the current layer.
4. layerp you're welcome
as for 1-4 see here
http://www.afralisp.net/
页:
[1]