Attribute value extraction

Discussion in 'AutoCAD' started by bcbii, Aug 23, 2004.

  1. bcbii

    bcbii Guest

    Hi,

    I don't know if this has been discussed here before or not, but I need to,
    using lisp select an attribute, and extract the value to a string. I would
    like to use something like the stock autocad command -attedit, where you
    actually select the attribute, not the block containing the attribute. I
    then want to use the string in a dialog box, using the set_tile function. I
    was just wondering if this is possible, and if so how I would go about doing
    it.

    Thank you,
     
    bcbii, Aug 23, 2004
    #1
  2. bcbii

    T.Willey Guest

    You can select the attribute by using (nentsel.. then extract the value of that using the dxf code 1. Hope this gets you going in the right direction.

    Tim
     
    T.Willey, Aug 23, 2004
    #2
  3. bcbii

    bcbii Guest

    Awesome thanks, nentselp worked like a charm!
     
    bcbii, Aug 23, 2004
    #3
  4. bcbii

    T.Willey Guest

    Happy to help.
    =D
    Tim
     
    T.Willey, Aug 23, 2004
    #4
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.