pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.32k stars 334 forks source link

Pinning the Output window on top of others #1307

Closed fabioloretti closed 1 year ago

fabioloretti commented 3 years ago

Hi Ehsan, this is more of a question that could lead to a request for improvement. I can see the output window has a "Keep on top" pin, is there a way to access that via code? I've been through all the Effective Output documentation, pyRevit.Output and this forum but I couldn't find any reference to it.

The reason I'm asking is because if my script triggers a Revit warning the console completely disappears behind the Revit window, which is not ideal.

Thank you. Fabio L Oliveira

eirannejad commented 3 years ago

Hmm I don't think so but that could be easily added

jmcouffin commented 1 year ago

@eirannejad That would be a must have for me. I am running a QAQC doc-opened hook and it bothers me that the output window always falls behind the revit one I thought I would give it a try but that is going through C# I found it is happening somewhere here. https://github.com/jmcouffin/pyRevit/blob/042add919f2edada3b84dfb996c180a53eeca32d/pyrevitlib/pyrevit/runtime/ScriptConsole.cs#L856 Maybe defaulting it to AlwaysOnTop? or like you mentioned create the API call. I could give it a try if you point me in the right direction and to something similar