Keep pyRevit prompt open while doing input in Revit

Hi,

is it possible to prompt a user for some input in a window, while the user is also doing stuff in Revit?

I want to make a tool that hides things in view based on what categories are selected with checkboxes in a prompt. Ideally, the user can keep the prompt open and to quickly hide/unhide categories while manipulating the view in Revit.

So far, all my prompts block out any input in Revit until the prompt is closed.

hi mve1122,

Have a look here.

I think that answers your question.

Hmm thanks, i am however unable to import dc3dServer from pyrevit.revit

you don’t really need the dc3dServer for a modeless window, those are not related. For a modeless window the following snippet is enough:

class UI(forms.WPFWindow):
    def __init__(self, xaml_file_name):
        forms.WPFWindow.__init__(self, xaml_file_name, handle_esc=False)

ui = UI("ui.xaml")
ui.show(modal=False)

If you want to have eventhandlers that do stuff on revit events then it is slightly more complicated, and will require to unsubscribe from them on closing the window