3dwannab Posted March 22, 2023 Posted March 22, 2023 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)))) Quote
ronjonp Posted March 22, 2023 Posted March 22, 2023 Did you try this? (setq ss (ssget '((0 . "HATCH") (450 . 0)))) Quote
3dwannab Posted March 22, 2023 Author Posted March 22, 2023 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. Quote
ronjonp Posted March 22, 2023 Posted March 22, 2023 (edited) 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 March 22, 2023 by ronjonp 1 Quote
ronjonp Posted March 22, 2023 Posted March 22, 2023 5 minutes ago, 3dwannab said: Great solution, thanks @ronjonp Quote
Recommended 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.