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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

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

RLEECI
6-Contributor

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
6-Contributor
(To:remy)

Thank you very much, it works

GetSegmentSheet(0) 

 

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!

Top Tags