Skip to main content
1-Visitor
November 3, 2020
Question

Jlink - how to get the sheet# of a table?

  • November 3, 2020
  • 2 replies
  • 1855 views

I assume I have a list of tables and loop through them, how do tell which sheet# a table belong to on a multiple sheet drawing? 

 

 TableOwner tableOwner = (TableOwner) pfcSession.GetCurrentSession().GetCurrentModel();
 Tables tables = tableOwner.ListTables();

 

 

 for (int i = 0; i < tables.getarraysize(); i++) {
 Table table = tables.get(i);

 

I tried read the free jlink docs but I could not locate it.

2 replies

21-Topaz I
November 4, 2020

There is currently no direct Jlink method in the form of Table.Getsheet(). To request it file an enhancement request.

At present, as you have figured ListTables()  returns all the tables that are present in the TableOwner.

 

A workaround may consist in calling  GetSegmentCount () and then GetSegmentSheet() 

RLEECI1-VisitorAuthor
1-Visitor
November 4, 2020

Thank you very much, it works

GetSegmentSheet(0) 

 

1-Visitor
November 25, 2020

I'm looking for a way to convert the contents of a google sheet I've created (nothing fancy) to a reddit table. I've tried tableit.net but it comes out looking a bit messy. The sheet I'm trying to convert is here MyCCPay

 

Thanks!