+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Using
    AutoCAD 2016
    Join Date
    May 2016
    Posts
    7

    Default Ssget filter for gradient hatch

    Registered forum members do not see this ad.

    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?

  2. #2
    Senior Member Jef!'s Avatar
    Using
    AutoCAD 2008
    Join Date
    Sep 2010
    Posts
    249

    Default

    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
    Different goal also quite often means different path...

  3. #3
    Forum Newbie
    Using
    AutoCAD 2016
    Join Date
    May 2016
    Posts
    7

    Default

    Thank you! work perfectly

  4. #4
    Senior Member Jef!'s Avatar
    Using
    AutoCAD 2008
    Join Date
    Sep 2010
    Posts
    249

    Default

    Registered forum members do not see this ad.

    I'm glad I could help you out!
    Different goal also quite often means different path...

Similar Threads

  1. quick HELP??? solid hatch to gradient hatch
    By ktbjx in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 8th Jul 2016, 10:34 pm
  2. SSGET Filter
    By uuoo10levi in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 3rd Jul 2014, 11:59 pm
  3. ssget filter
    By paulmcz in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 17th Sep 2011, 03:33 pm
  4. how can i use the filter in ssget
    By muthu123 in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 14th May 2010, 02:29 am
  5. Using ssget with C and filter!
    By devouring in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 8th Mar 2007, 12:17 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts