I recently started to use the startup.py script. I am trying to implement the dockable panel. The funny thing is I had it working last week, came in this week, and got the following error.
Hi @Giuliano what version of pyrevit and revit are you running?
Btw, I advise against storing git projects on onedrive/sharepoint, the hidden .git folder holds many small files that don’t play well with cloud sync apps. And you already have a server holding that info
Just to be sure: is the panel_id unique along all the python scripts you load?
I kindly ask you to post a MRE (minimum reproducible example) that raises that error:
the xaml is kinda important here, because it seems that the error is related to it, so please post it (and reduce it to the bare minimum that triggers the error if you can)
does the error occur if your startup.py script only had the lines you posted? Maybe there’s something wrong in the 140 lines above it
Thank you for your help @sanzoghenzo! It was the xaml file (One of the last things I did the previous day when it was working was adding some radio buttons. And then I never defined the class method that it was bound to call when checked.)