abra-CAD-abra 发表于 2022-7-5 17:01:24

Filter List - Variables

All,
 
I am trying to make the values 25.5 and 26.5 variables, in the filter list example below:
 

(-4 . ">")(40 . 25.5)(-4 . "

marko_ribar 发表于 2022-7-5 17:20:14

Maybe you missed ""...
 

(-4 . "")(40 . 25.5)(-4 . "")

abra-CAD-abra 发表于 2022-7-5 17:33:37

 
 
Thanks marko_ribar,
 
I got it now - didn't need "AND". It just needed me to wake up!!
 

(setq s (ssget "_X"       (list(cons 0 "VIEWPORT")(cons -4 ">")(cons 40 lower)(cons -4 "

Lee Mac 发表于 2022-7-5 17:48:18

For completeness, note that only the expressions which contain variable data need to be quoted, the other expressions can be literals:
(ssget "_X" (list '(0 . "VIEWPORT") '(-4 . ">") (cons 40 lower) '(-4 . "See here for more information.

abra-CAD-abra 发表于 2022-7-5 17:55:13

 
 
Thanks Lee,
 
Great tutorial!
 
#Enlightened
 
Cheers

Lee Mac 发表于 2022-7-5 18:11:02

Thank you - I'm glad you found it useful!
页: [1]
查看完整版本: Filter List - Variables