Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API to exit Revit

2 REPLIES 2
Reply
Message 1 of 3
cutama
771 Views, 2 Replies

API to exit Revit

I have implemented a revit plugin as an external application (IExternalApplication). 

After doing some processing, I want to automatically exit Revit. Is there a way to do that?

2 REPLIES 2
Message 2 of 3
augusto.goncalves
in reply to: cutama

Hi,

 

You can try send Alt+F4 keys to Revit...have you tried that? It will depend on the context...

 

http://thebuildingcoder.typepad.com/blog/2010/11/launching-a-revit-command.html

 

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 3
cutama
in reply to: augusto.goncalves

Thanks!

I found a solution using Process.Kill()... not sure if there are any gotchas.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community