Jump to content

SSGET Filter List Error


abra-CAD-abra

Recommended Posts

The following code presents no errors in the VLIDE editor, however, in AutoCAD it gives: "error - bad SSGET list"

 

(setq ss
      (ssget "_:L"
	'((0 . "INSERT,LEADER,MULTILEADER,TEXT,MTEXT,DIMENSION")
	  (-4 . "<NOT")
	  (8 . "*_ANNO_*")
	  (-4 . "NOT>")
	 )
      ) ;_ end of ssget
) ;_ end of setq

 

It is intended to select filtered entities that are not on the wildcard layer *_ANNO_*

 

Can somebody point me in the right direction?

 

Thanks in advance

Edited by abra-CAD-abra
Fixed
Link to comment
Share on other sites

All,

 

Please disregard this post. I just needed to walk away and clear my head - it is working as expected. :D

 

Cheers

Link to comment
Share on other sites

You could also use:
(ssget "_:L" '((0 . "INSERT,LEADER,MULTILEADER,TEXT,MTEXT,DIMENSION") (8 . "~*_ANNO_*")))

 

Thanks Lee :thumbsup:

Link to comment
Share on other sites

So basicaly group filters work like this:

(GC_Value . Wcmatch_Pattern)

 

Yes, thanks Grrr. I got it now - full steam ahead!! :D

Link to comment
Share on other sites

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...