Block atts not showing up when xref'd...

Discussion in 'AutoCAD' started by pkirill, Jul 3, 2003.

  1. pkirill

    pkirill Guest

    I thought I saw a post on this in this NG, but of course it wasn't my
    problem then so I didn't pay attention - now I can't find it.... Can any
    one supply some thoughts on the fix for this, or point me to the original
    thread?

    TIA
     
    pkirill, Jul 3, 2003
    #1
  2. pkirill

    Jeff Mishler Guest

    Was the block exploded leaving the resultant Attribute Definition w/
    Tagstring? Attdef's won't display in an xref....
    HTH,
    Jeff
     
    Jeff Mishler, Jul 3, 2003
    #2
  3. pkirill

    pkirill Guest

    That may have been it... Thanks!


     
    pkirill, Jul 7, 2003
    #3
  4. pkirill

    pkirill Guest

    That was it exactly - next question, anyone know of a routine to convert
    attdefs to text?
     
    pkirill, Jul 7, 2003
    #4
  5. pkirill

    David Bethel Guest

    ;;;CONVERT An ATTDEF To A TEXT Entity
    ;;;ARG -> ATTDEF_ename
    ;;;RET -> nil

    (defun attdef2text (en / ed)
    (setq ed (entget en))
    (entmake (list (cons 0 "TEXT")
    (assoc 1 ed)
    (assoc 7 ed)
    (assoc 8 ed)
    (assoc 10 ed)
    (assoc 11 ed)
    (assoc 40 ed)
    (assoc 41 ed)
    (assoc 50 ed)
    (assoc 51 ed)
    (assoc 71 ed)
    (assoc 72 ed)
    (cons 73 (cdr (assoc 74 ed)))
    (assoc 210 ed)
    (if (assoc 6 ed)
    (assoc 6 ed)
    (cons 6 "BYLAYER"))
    (if (assoc 39 ed)
    (assoc 39 ed)
    (cons 39 0))
    (if (assoc 62 ed)
    (assoc 62 ed)
    (cons 62 256))))
    (entdel en)
    (redraw (entlast)))


    -David
     
    David Bethel, Jul 7, 2003
    #5
  6. pkirill

    pkirill Guest

    Mucho thanks!


     
    pkirill, Jul 7, 2003
    #6
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.