Use Revit with BatchPrint: How can I hide logo and window at the launching?

Use Revit with BatchPrint: How can I hide logo and window at the launching?

pmeigneux
Advocate Advocate
1,049 Views
5 Replies
Message 1 of 6

Use Revit with BatchPrint: How can I hide logo and window at the launching?

pmeigneux
Advocate
Advocate

Hello,

 

I currently launch Revit with a BatchPrint.

 

I would like to know if there is a way to hide the Revit logo and his window which appears at the screen during the launching.

 

Thanks for your response,

 

Regards,

 

Philippe

0 Likes
Accepted solutions (1)
1,050 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Philippe,

 

Thank you for your query.

 

I am not aware of any such possibility, and I am pretty sure that the Revit API does not provide any support for this either.

 

However, I am also pretty sure that you can easily achieve what you are after using the Windows or .NET API.

 

I would suggest searching the Internet for solution to suppress a flash screen.

 

You might be able to use some of the techniques described in my stand-alone app to detect and close an arbitrary Windows form:

 

http://thebuildingcoder.typepad.com/blog/2009/10/dismiss-dialogue-using-windows-api.html

 

I hope this helps.

 

Please let us know how you end up solving this, in case anyone else runs into the same requirement.

 

Thank you!

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 6

Dale.Bartlett
Collaborator
Collaborator

Not sure if this is at all helpful, but I use the following to hide a batch process command screen:

 

ProcessStartInfo startInfo = new ProcessStartInfo();
            startInfo.CreateNoWindow = true; // hide command window
            startInfo.WindowStyle = ProcessWindowStyle.Hidden;
            startInfo.FileName = lstrBatFileNameFull;
            startInfo.Arguments = args;

            System.Diagnostics.Process.Start(startInfo);



______________
Yes, I'm Satoshi.
Message 4 of 6

callumf
Contributor
Contributor
Accepted solution

To add to this solution, use this to suppress the splash screen:

 

startInfo.Arguments = '/nosplash'

On a side note, has anyone had any success using this line when opening Revit 2017? The exact same code opens 2016 silently, but 2017 seems to be ignored:

 

startInfo.WindowStyle = ProcessWindowStyle.Hidden

 

 

 

 

0 Likes
Message 5 of 6

pmeigneux
Advocate
Advocate

Thank you very much.

 

Your startInfo.Arguments = '/ nosplash' solution works for Revit 2016 and is back in 2017.

 

Philippe.

0 Likes
Message 6 of 6

callumf
Contributor
Contributor

Glad it worked Phillippe.

 

Im still interested to know if anyone has managed to open Revit 2017 silently, as you can Revit 2016 with this switch:

 

startInfo.WindowStyle = ProcessWindowStyle.Hidden
0 Likes