I am really new to pyRevit and after watching some videos on Youtube i have been eager to get into it to make it easier to run my Dynamo scripts as i can turn my scripts into buttons on a tab at the top of Revit. However i appear to have a couple of minor issues with the layout of it. I would like to have my Panels ordered Worksets / Reinforcement / Drawings
my yaml code is:
layout:
…-.Worksets
…-.-----
…-.Reinforcement
…-.-----
…-.Drawings
However on the screen it shows it as Reinforcement / Worksets / Drawings
Am i doing something wrong?
Also in yaml is it possible to have a space for when you have a space in a file name?
As an example rather than having to do “TestDocument” can you do “Test Document”
sometimes, reloading is not enough and you have to restart Revit to regenerate the UI
You usually can have spaces in file naming. I haven’t encountered issue with that. If the spacing bugs in the file name, you can had double quotes "file name"
@Wilko1306
the yaml format is a very sensible one (at least in pyrevit)
you need to respect the spacing of things
I suggest you run it through this tool https://www.yamllint.com/
in pseudo code:
layout:
2 spaces, a dash, 1 space, your panel name
2 spaces, a dash, 1 space, your panel name
2 spaces, a dash, 1 space, your panel name
i have had to do a bit of a workaround as it does not seem to like ordering “Create” then “Category” so i have changed “Category” to “Category To” and now it works fine
at the beginning, the yaml syntax got me debugging for hours, then I discovered some websites like https://www.yamllint.com/, and code editor extensions that helped with yaml specific syntax