Jump to content

ssget filter to select hatches that are NOT a gradient


3dwannab

Recommended Posts

Hi all,

 

I've tried this but it's not working. I want to select all hatches that are not gradients.

 

(setq ss (ssget '((0 . "HATCH") (-4 . "!=") (450 . 1))))

 

Link to comment
Share on other sites

Thanks @ronjonp but that only selects solid hatches. The dxf code states that 1 is gradient and 0 is solid. So I was hoping to select all but 1 for this dxf code.

Link to comment
Share on other sites

7 minutes ago, 3dwannab said:

Thanks @ronjonp but that only selects solid hatches. The dxf code states that 1 is gradient and 0 is solid. So I was hoping to select all but 1 for this dxf code.

Cool .. I just tested your code and it works for me ( AutoCAD 2023 ). Nevermind .. it only works with solid hatches.

 

This seems to work:

(setq ss (ssget '((0 . "HATCH") (-4 . "<NOT") (2 . "*`,*") (-4 . "NOT>"))))

 

Edited by ronjonp
  • Thanks 1
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...