Load saved WindowLayout from file with python

Hi There,

I’ve recently discovered the WindowLayout command, to save and restore Toolbar/Panel layouts via the UI from a file. Great work!

now, I am looking for a way to load a saved WindowLayout with python (from the saved .rwl file). I can’t find anything related to WindowLayouts in the API documentation for RhinoCommon or rhinoscriptsyntax

hopefully someone can help me out

Cheers,
Tim

You can possibly just use rs.command(_-WindowLayout "SavedLayoutName")
(no guarantees, haven’t tried it…)

sorry, forgot to mention i’d like to restore the saved layout from file.

Hi @timcastelijn,

I’ve logged a wish for the _-WindowLayout command to add an _Import command line option.

https://mcneel.myjetbrains.com/youtrack/issue/RH-83468

– Dale

2 Likes

Thank you @dale !