Jump to content

Recommended Posts

Posted

Hello,

 

When using ssget with point option (ssget pt). I have noticed that only the top most entity (with respect to the draw order) which is passing through pt is selected and the entities at a lower level are not selected. Is this observation true and If so can we override this behavior to select all the entities passing through a specified point irrespective of their draw order.

 

Thanks.

Posted

Are you looking for something like this with window selection set. ?

 

(setq pt1 (getpoint "\n Specify first point :")
     pt2 (getpoint "\n Specify second point :")
     )
(setq ents (ssget[b][color="red"] "_w"[/color][/b] pt1 pt2))

 

Tharwat

Posted

The point mode will only obtain a single entity I believe, perhaps try a crossing window:

 

(
 (lambda ( p )
   (if p (sssetfirst nil (ssget p)))
 )
 (getpoint "\nPoint: ")
)

(
 (lambda ( p )
   (if p (sssetfirst nil (ssget "_C" p p)))
 )
 (getpoint "\nPoint: ")
)

Posted

Try this:

 

(if (setq a (ssget "_c" (getpoint) (getvar 'lastpoint))) 
 (sssetfirst nil a))

 

 

Hope this helps!

Posted
The point mode will only obtain a single entity I believe

Correct......

Posted

Thanks to all who replied.

 

My question is simple. I have a point say pt. I want to select all the lines passing through pt so I am using

(ssget pt (list(cons 0 "line"))). But what I have seen is that only the top most line with respect to the draw order gets selected and remaining lines passing via pt are not selected. while I want to select all such lines irrespective of their draw order.

 

Hope its clear now.

 

Thanks.

Posted
Thanks to all who replied.

 

My question is simple. I have a point say pt. I want to select all the lines passing through pt so I am using

(ssget pt (list(cons 0 "line"))). But what I have seen is that only the top most line with respect to the draw order gets selected and remaining lines passing via pt are not selected. while I want to select all such lines irrespective of their draw order.

 

Hope its clear now.

 

Thanks.

Read post #3.
Posted
Thanks to all who replied.

 

You're welcome, but did you actually read the posts?

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