File path and name

Hi Matthias,

How can I retrieve the path and file name of the layout opened in the active cell view by Ruby code, cf. "File > Layout Statistics" from the menu?

Cheers,

Tomas

Comments

  • Hi, Tomas!

    Equivalent Python code is pya.Application.instance().main_window().current_view().active_cellview().filename(). See documentation.

  • Hi Eugene,

    Thanks a lot! It's similar for Ruby.

    Cheers,

    Tomas

Sign In or Register to comment.