• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

read and export via vba data of a table part

  • Thread starter Thread starter gio17
  • Start date Start date

gio17

Guest
hello to all

I have a problem and I hope experts can help me, I have a table in autocad from which I need to export only some data not the whole table, there is the possibility to read the table through vba and to be able to read only the data I need? ? ? ?

thanks in advance to those who can give me a straight
 
with this macro read all data of all tables in the drawing:
Code:
public sub test_tabella()
dim ent as acadentity
dim table as acadtable
dim row as integer, column as integer

for each ent in thisdrawing.modelspace
    if (ent.objectname = "acdbtable") then
        set table = ent
        for row = 0 to table.rows - 1
            for column = 0 to table.columns - 1
                debug.print "[r" & row & ",c" & column & "] -> " & table.getvalue(row, column, 0)
            next column
        next row
    end if
next

end sub
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top