Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Get drawing table name via J-Link

$
0
0

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!



Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>