Jump to content

boolean trouble


MartinSomerville

Recommended Posts

(setq ss (ssget "X" '(

(-4 . "

(-4 . "")

(-4 . "

(-4 . "")

(-4 . "")

(-4 . "")

(-4 . "")

(-4 . "or>")

(-4 . "and>")

)

)

)

 

hi was just wondering if anyone could help me out will this one. I am only new to lisp.

Am wanting to select objects which have a certain colour (colour by colour - not by layer. realise they would not have a 62 if by layer) but if they are text, dim, leader or multileader, then I don't want them selected.

 

Any help would be great thanks

 

regards

martin

Link to comment
Share on other sites

Maybe this:)

(setq ss (ssget "X"
               '(
                 (-4 . "<and")
                   (-4 . "<or")
                     (62 . 1)
                     (62 . 6)
                     (62 . 9)
                     (62 . 42)
                     (62 . 214)
                   (-4 . "or>")
                   (-4 . "<not")
                     (0 . "text,dimension,leader,multileader")
                   (-4 . "not>")
                 (-4 . "and>")
                )
        )
)

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