Jump to content

Lisp error- error: bad argument type: consp ">="


Recommended Posts

Posted

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 ">="

Posted

Have you tried :

 

(setq ss1 (ssget (list '(0 . "CIRCLE") '(-4 . ">=") '(40 . 20))))
Posted
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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...