standalone layout in mainwindow

edited June 2015 in Ruby Scripting
If I generate a standalone Layout, is it possible to load the Layout into a LayoutView?

For instance, I have a script that generates a layout, but I decide that I want to view the layout that was generated.

Would I have to copy the cell data in the layout into a layout generated by main_window.create_layout(1)? Or is there a way to load the layout into an existing LayoutView?

Comments

  • edited June 2015

    Hello,

    yes, there is a way to show an existing layout and add it to the layout view: LayoutView#show_layout.

    If you want to open a new view with your layout, you can create an empty one with MainWindow#create_view first and add your layout to this view then.

    Matthias

  • edited November -1
    That's what I needed to know.

    Thanks, Matthias!
Sign In or Register to comment.