+ Reply to Thread
Results 1 to 4 of 4

Thread: boolean trouble

  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Posts
    44

    Default boolean trouble

    Registered forum members do not see this ad.

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

  2. #2
    Super Member CAB's Avatar
    Using
    AutoCAD 2000
    Join Date
    May 2004
    Location
    Tampa, Florida
    Posts
    801

    Default

    Maybe this
    Code:
    (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>")
                     )
             )
    )

  3. #3
    Full Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Posts
    44

    Default

    thankyou so much

    i will check it out at work tomorrow

    cheers
    martin

  4. #4
    Full Member
    Using
    AutoCAD 2009
    Join Date
    May 2008
    Posts
    44

    Default

    Registered forum members do not see this ad.

    yep.

    like a charm!!


Similar Threads

  1. Trouble with an x-ref
    By Siberian in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 25th Oct 2007, 12:25 pm
  2. SIN Trouble
    By MMS in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 15th Mar 2007, 08:02 am
  3. Creating walls using boolean in Viz2007
    By exup in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 24th Jan 2007, 12:53 am
  4. DWF Trouble
    By 40sondacurb in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 21st Nov 2005, 05:47 am
  5. 3d trouble!
    By malavica in forum 3D Modelling
    Replies: 1
    Last Post: 13th Oct 2002, 09:14 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts