Skip to main content

How to switch between layouts

Comments

2 comments

  • Stefan Schweigert

    Hi Yannick,

     

    Yes, if you define a custom command and configure the id of the layout, as bolded below, then you can switch between available layouts.

     

    [

    {

    "name": "viewer.load-layout",

    "arguments": "item://layout/layout1"

    }

    ]

     

    We don't currently have a method within Designer to find out what the id is, but if you download the saved app.json, you can find the id, which will be near the top of the file, similar to '45de7822-ee8a-4b8b-a080-d36888d8a7bc'.

     

    Thanks, Stefan

    0
  • Permanently deleted user

    Thanks Stefan, works like a charm!

    For future reference; the layout id (layout1) equals the name of the layout xml file. In my case these were "desktop-landscape" and "Main-3D-2-jj77ebolpl", so it's partly readable.

    0

Please sign in to leave a comment.