Jump to content

make 'lastpoint' Current layer?


Recommended Posts

Posted

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.

Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...