Autocad 2005 Table object W/ vba

Discussion in 'AutoCAD' started by Wes Roebuck, Aug 6, 2004.

  1. Wes Roebuck

    Wes Roebuck Guest

    I am having trouble reaching in and getting the contents of the new AutoCAD table objects. I am trying to write something from within cad to read a table in modelspace. I am using fields in the tables and need to grab that information to be used outside AutoCAD. Does anyone know how to do this or have sample code?
     
    Wes Roebuck, Aug 6, 2004
    #1
  2. Read the thread in this group "Hs anyone come across code to export a
    table?" It not only has a hyperlink to an article I wrote with sample code
    on that site, but also code we wrote for Dan [the poster of that thread]

    Specific to your question, the code for Dan walks thru the cells pulling
    out the text. Since you used fields, you'lll need to run it once with
    watches and/or the locals window running to see if you get the text or the
    actual field object returned. If its the field, you'll need to set the
    return to a field object instead of a string and then pull the field's
    value. Look in the help file for an example of extracting the value from a
    field object.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 6, 2004
    #2
  3. Wes Roebuck

    Dan Guest

    I posted what I have so far in the "Hs anyone come across code to export a
    table?" thread. If I get this figured out I will post it.

    Any takers?

    AutoCAD table objects. I am trying to write something from within cad to
    read a table in modelspace. I am using fields in the tables and need to grab
    that information to be used outside AutoCAD. Does anyone know how to do this
    or have sample code?
     
    Dan, Aug 10, 2004
    #3
  4. look in the thread "Hs anyone come across code to export a table...Take 2"
    - I posted all the source code you should need

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 10, 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.