abra-CAD-abra Posted November 7, 2016 Share Posted November 7, 2016 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 . "<") (40 . 26.5) It returns the error: bad SSGET List Value Any ideas? Cheers Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted November 7, 2016 Share Posted November 7, 2016 Maybe you missed ""... (-4 . "<AND") (-4 . ">") (40 . 25.5) (-4 . "<") (40 . 26.5) (-4 . "AND>") Quote Link to comment Share on other sites More sharing options...
abra-CAD-abra Posted November 7, 2016 Author Share Posted November 7, 2016 Maybe you missed ""... (-4 . "<AND") (-4 . ">") (40 . 25.5) (-4 . "<") (40 . 26.5) (-4 . "AND>") 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 "<") (cons 40 upper) ) ;_ end of list ) ;_ end of ssget ) ;_ end of setq All good Cheers Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 7, 2016 Share Posted November 7, 2016 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. Quote Link to comment Share on other sites More sharing options...
abra-CAD-abra Posted November 7, 2016 Author Share Posted November 7, 2016 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 . "<") (cons 40 upper))) See here for more information. Thanks Lee, Great tutorial! #Enlightened Cheers Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 7, 2016 Share Posted November 7, 2016 Thank you - I'm glad you found it useful! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.