martymoose 发表于 2022-7-6 17:09:14

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.

lpseifert 发表于 2022-7-6 17:36:21

Edit the code I wrote for you by taking the line that says (setvar "clayer" oldlayer) out
or... why not use express tools' Laymcur command?

martymoose 发表于 2022-7-6 18:00:00

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

lpseifert 发表于 2022-7-6 18:13:27

you're welcome
as for 1-4 see here
http://www.afralisp.net/
页: [1]
查看完整版本: make 'lastpoint' Cur