cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
FestacFarmer
Level I

How to select an active tabulate window to make into data table

Hi All;

 

I am trying to script the "Make Into Data Table" functionality into a toolbar icon (for quicker access and shortcut capability).

 

However, I am unsure how to select an active "tabulate" window to apply the function to. I assumed doing something like in the image below should work but I have been unable to, unfortunately.

 

There should be an easy solution but I have not been able to find it!

Thank you

FestacFarmer_0-1650414548391.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ErraticAttack
Level VI

Re: How to select an active tabulate window to make into data table

Yes, it is easily done!

 

Here is the code to put into the menu-item

 

win = Current Window();
Try(
    obj = ( win[Outline Box( 1 )] << Get Scriptable Object );
    If( Char( obj ) == "Tabulate[]",
        obj << Make into Data Table
    )
)

 

Jordan

View solution in original post

2 REPLIES 2
ErraticAttack
Level VI

Re: How to select an active tabulate window to make into data table

Yes, it is easily done!

 

Here is the code to put into the menu-item

 

win = Current Window();
Try(
    obj = ( win[Outline Box( 1 )] << Get Scriptable Object );
    If( Char( obj ) == "Tabulate[]",
        obj << Make into Data Table
    )
)

 

Jordan
FestacFarmer
Level I

Re: How to select an active tabulate window to make into data table

Thank you! This worked perfectly