Select all anonymous blocks

Discussion in 'AutoCAD' started by Casey, Mar 11, 2005.

  1. Casey

    Casey Guest

    I want to explode all anonymous blocks, but how do I create a selection set
    of them.?

    (ssget "x" '((2 . "*U*"))) doesn't work, and is dangerous if you have any
    blocks with the letter 'u' in them.

    Thanks


    Casey
     
    Casey, Mar 11, 2005
    #1
  2. Try something like this

    (setq ss (ssget "x" '((2 . "`*U*"))))
     
    Jason Piercey, Mar 11, 2005
    #2
  3. Casey

    Casey Guest

    Slick.... thanx

    Casey

     
    Casey, Mar 11, 2005
    #3
  4. You're welcome
     
    Jason Piercey, Mar 11, 2005
    #4
  5. Casey

    BTO Guest

    hi,
    i saw some cases where anaonymous blocs were *U or *X or *N

    Bruno Toniutti
     
    BTO, Mar 23, 2005
    #5
  6. Casey

    Casey Guest

    Thanks for the heads up...

    Casey

     
    Casey, Mar 23, 2005
    #6
  7. Casey

    Tom Smith Guest

    I think the leading asterisk is the key, so (ssget "x" '((2 . "`**"))) ought to always work.
     
    Tom Smith, Mar 23, 2005
    #7
  8. Casey

    Aeo.Z Guest

    (ssget '((2 . "*u*"))) -->nothing

    (ssget '((2 . "'*u*")))-->ok


    (wcmatch "'*u0" "*u*") -->T
    "*u*" include "'*u*"
    but (ssget '((2 . "*u*"))) slelected nothing,why?
     
    Aeo.Z, Mar 26, 2005
    #8
  9. The asterick has special meaning in a wildcard
    pattern, so you must escape it, like this:

    (ssget '((2 . "`*U*")))
     
    Tony Tanzillo, Mar 26, 2005
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.