Bad ssget list

Bad ssget list

etilley327KA
Advocate Advocate
356 Views
4 Replies
Message 1 of 5

Bad ssget list

etilley327KA
Advocate
Advocate

Could someone tell me how to fix this bad ssget error I'm getting? I'm trying to get everything in the selected layers and exclude any text.

(setq A (ssget '((8 . "AP-BUILDING LINE,AP-EASEMENT,AP-BOUNDARY,NO PLOT")
                  (-4 . "<AND")
                  (not (0 . "TEXT"))
                  (-4 . "AND>"))))
0 Likes
Accepted solutions (1)
357 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

@etilley327KA wrote:

.... I'm trying to get everything in the selected layers and exclude any text.....


(setq A (ssget '((8 . "AP-BUILDING LINE,AP-EASEMENT,AP-BOUNDARY,NO PLOT") (0 . "~TEXT"))))

 

Kent Cooper, AIA
Message 3 of 5

etilley327KA
Advocate
Advocate
How would I add Mtext to the exclusion?
0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

@etilley327KA wrote:
How would I add Mtext to the exclusion?

Same way as you add it when you want it included:

(setq A (ssget '((8 . "AP-BUILDING LINE,AP-EASEMENT,AP-BOUNDARY,NO PLOT") (0 . "~*TEXT"))))

 

(ssget) filter lists can use wildcards, which are described / listed in most detail in Help for the (wcmatch) function.

Kent Cooper, AIA
Message 5 of 5

pbejse
Mentor
Mentor

@etilley327KA wrote:

Could someone tell me how to fix this bad ssget error I'm getting? I'm trying to get everything in the selected layers and exclude any text.

(setq A (ssget '((8 . "AP-BUILDING LINE,AP-EASEMENT,AP-BOUNDARY,NO PLOT")
                  (-4 . "<AND")
                  (not (0 . "TEXT"))
                  (-4 . "AND>"))))

As per your original intent

 

(ssget '((8 . "AP-BUILDING LINE,AP-EASEMENT,AP-BOUNDARY,NO PLOT")
                  (-4 . "<NOT") (0 . "*TEXT") (-4 . "NOT>")))

 

HTH

0 Likes