dimven / NavisPythonShell

An IronPython console for Navisworks
MIT License
69 stars 14 forks source link

Any way to have nonblocking window? #17

Open davi-v opened 8 months ago

davi-v commented 8 months ago

Apparently, there's no way to interact with other Navisworks screens if the "IronPython Console" is opened. Any way to dock NavisPythonShell's window and use it seamlessly with the rest of Navisworks?

wishbonesr commented 1 week ago

Creating a docking pane is actually a decent amount of work. Consider making the primary console modeless. VS compiler will complain about the output not being an executable to open the dialog, but it doesn't know NW will handle for us.

Change NavisPythonShell\IronPythonConsoleCommand.cs Line 104 to gui.Show(); shows that NW is greedy and doesn't share keystrokes.

What is more palatable is a hide dialog button to retain console content and prevent a reinitialization if IronPython. I'll experiment, and post back if successful.