cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

RLEECI
12-Amethyst

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

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.

3 REPLIES 3
remy
21-Topaz I
(To:RLEECI)

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() 

RLEECI
12-Amethyst
(To:remy)

Thank you very much, it works

GetSegmentSheet(0) 

 

BL_9728674
2-Explorer
(To:RLEECI)

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!

Announcements


Top Tags