Since the dockable pane is using the startup.py, is restarting Revit the only way to get it to update/refresh so see the latest changes? so i am building the wpf and typically i just make the change and click the pushbutton and see the changes. with the dockable pane, i am having to restart Revit each time.
I guess the big question is, based on what i saw on the example dockable panels in the pyRevitDevTools, does the code have to live in the startup.py instead of the script.py in the pushbbutton folder?
You can do your xaml as a usercontrol, and host that for debugging in a normal window instead of a dockable pane.
See this PR as an example:
Other than that the code itself doesn’t have to live in the startup.py, but it has to be called in the startup.py to register it to revit. To be able to call it there, you can either move it to a lib or append the path where it lives to sys.