Jump to content

About Select All Lisp...


veteranus

Recommended Posts

Hi guys,

 

I need a lisp that something like quickselect command. I want to select my precious area and want to select same layers on that "selected area" only. Is that this can be done?

 

I am grateful for all the help.

 

Regards.

Link to comment
Share on other sites

Have you tried the SELECTSIMILAR command?

 

hi, of course I tried. But I want something more specific.

 

lypfPYb.jpg

 

this is the simplest example. Red lines are LAYER1, yellow lines are LAYER2.

 

I want to select area like this and want to select just all of LAYER1 lines in my "selected area". I hope you understand lee...

 

thanks for answer.

 

regards.

Link to comment
Share on other sites

(defun c:ls ( / e )
   (if (setq e (car (entsel "\nSelect object on target layer: ")))
       (sssetfirst nil (ssget (list (assoc 8 (entget e)))))
   )
   (princ)
)

 

oh thats it. it works just ı want thanks for your code lee mac.

Link to comment
Share on other sites

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...