Multiple filter oejct

Multiple filter oejct

avinash00002002
Collaborator Collaborator
311 Views
3 Replies
Message 1 of 4

Multiple filter oejct

avinash00002002
Collaborator
Collaborator

Hi

I have some object which required filter "Layer" "Linetype" and "Object" i have written a routine but not working.

any suggestion please.

 

(setq flt '((-4 . "<OR")
(-4 . "<AND")
(0 . "LINE") ;object
(8 . "H*") ;Layer
(-4 . "<OR")
(-4 . "<AND")
(6 . "H*") ;Linetype
(-4 . "AND>")
(-4 . "OR>")
)
)

Thanks,

 

Avinash

0 Likes
312 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Try this:

 

(setq color 1) ;;set color
(setq select
  (ssget
    (list 
      (cons -4 "<AND") ( cons -4 "!=") (cons 62 color) (cons -4 "AND>" ) ;;filter color
      (cons -4 "<NOT") (cons 0 "CIRCLE,ARC,SPLINE,ELLIPSE,*TEXT") (cons -4 "NOT>") ;;ent
    )
  )
)

 

 

0 Likes
Message 3 of 4

devitg
Advisor
Advisor
(setq flt 
(0 . "LINE") ;object
(8 . "H*") ;Layer
(6 . "H*") ;Linetype
)
0 Likes
Message 4 of 4

ВeekeeCZ
Consultant
Consultant

@avinash00002002 wrote:

Hi

I have some object which required filter "Layer" "Linetype" and "Object" i have written a routine but not working.

any suggestion please.

 

(setq flt '((-4 . "<OR")
(-4 . "<AND")
(0 . "LINE") ;object
(8 . "H*") ;Layer
(-4 . "<OR")
(-4 . "<AND")
(6 . "H*") ;Linetype
(-4 . "AND>")
(-4 . "OR>")
)
)

Thanks,

 

Avinash


 

How could you expect this to work if you don't even bother to pair it!?

0 Likes