I have a drawing containing 3 tables, each with its own name, say "Table1", "Table2" and "Table3".
I am trying to get table names via J-Link; here follows my sample code:
Tables drwTables = drawing.ListTables();
if (drwTables != null) {
for (int i = 0; i < drwTables.getarraysize(); i++) {
printMsg("Table Id: " + drwTables.get(i).GetId());
printMsg("Table name: " + drwTables.get(i).GetName());
}
}
ListTables() correctly returns 3 Tables; moreover I guess also GetId() returns their correct ID values (0, 1 and 2 respectively). On the contrary, GetName() always returns null.
What's wrong with my code? Which is the right way to get table names?
Thanks!