Jump to content
3dwannab

Filter out a previously selected entsel

Recommended Posts

3dwannab

Hi,

 

Sorry for the heading, I spelt entsel all wrong. Can someone change that please.

 

I'm selecting a closed polyine using an entsel and the using an ssget to select other objects.

 

How do I filter out that entsel item.

 

Like so:

(setq ent_1 (car (entsel "\nPlease select something")))

 

Then filter it. I read in the docs you can't filter an entity (code 0). So how do I accomplish this?

 

My feeble attempt:

(while (not ent_1)
(setq ss_1 (ssget '((0 . "LWPOLYLINE") (-4 . "=") (70 . 1))))
)

Share this post


Link to post
Share on other sites
Lee Mac

Since an ssget filter list cannot filter by entity name (DXF -1) or handle (DXF 5), you will need to either use ssdel to remove the ent_1 from ss_1 or exclude ent_1 when processing the set using a conditional to compare each entity/handle with that of ent_1.

Share this post


Link to post
Share on other sites
3dwannab
Since an ssget filter list cannot filter by entity name (DXF -1) or handle (DXF 5), you will need to either use ssdel to remove the ent_1 from ss_1 or exclude ent_1 when processing the set using a conditional to compare each entity/handle with that of ent_1.

 

Thanks. Just thought there'd be a workaround.

 

Upon looking at this it's actually the entsel of a hatches polyline I need to exclude. I have a routine somewhere that can do this.

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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