Jump to content
pmayer

Ssget filter for gradient hatch

Recommended Posts

pmayer

How can I filter a selection of hatch by gradient name using ssget fonction?

 

The exeample bellow works well for standard hatch name... it does not work for gardient

 

WORK:

(setq ss (ssget "_X" (list '(0 . "HATCH")'(2 . "GRASS"))))

 

 

DONT WORK:

(setq ss (ssget "_X" (list '(0 . "HATCH")'(2 . "gradient"))))

OR

(setq ss (ssget "_X" (list '(0 . "HATCH")'(2 . "gr_spher"))))

 

 

Could you help me?

Share this post


Link to post
Share on other sites
Jef!

Gradient hatches have a 1 as a value at dxf 450..

(setq ss (ssget "_X" (list '(0 . "HATCH")'(450 . 1))))

 

cheers

ps.: search for dxf reference.. very helpful:)

Share this post


Link to post
Share on other sites
pmayer

Thank you! work perfectly

Share this post


Link to post
Share on other sites
Jef!

I'm glad I could help you out!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×