AbdRF Posted April 23, 2020 Posted April 23, 2020 Hi all, I need quick help in order to figure out why I am getting error for below lisp statement. I am trying to build a selection set to select all the circles with radius greater than or equal to 20 using relational filter in ssget. (setq ss1 (ssget '(0 . "CIRCLE")(-4 . ">=")(40 . 20))) But getting below error- Quote ; error: bad argument type: consp ">=" Quote
marko_ribar Posted April 23, 2020 Posted April 23, 2020 Have you tried : (setq ss1 (ssget (list '(0 . "CIRCLE") '(-4 . ">=") '(40 . 20)))) Quote
AbdRF Posted April 23, 2020 Author Posted April 23, 2020 2 minutes ago, marko_ribar said: Have you tried : (setq ss1 (ssget (list '(0 . "CIRCLE") '(-4 . ">=") '(40 . 20)))) Thanks @marko_ribar. I search about this error and now realised that the function is expecting list as argument. (setq ss1 (ssget '((0 . "CIRCLE")(-4 . ">=")(40 . 120)))) Both are working good! Quote
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.