Is it possible to launch an external exe AND continue to use Revit?

Is it possible to launch an external exe AND continue to use Revit?

Anonymous
Not applicable
1,517 Views
4 Replies
Message 1 of 5

Is it possible to launch an external exe AND continue to use Revit?

Anonymous
Not applicable

Is it possible to launch an external .exe WinForm from a revit ribbon command panel just like an add-in(I can already do this) and still model and detail in Revit without the wait cursor, which I am taking to be a synchronous lock created by revit or the api.

 

This below is a code snippit from one of Jeremmy Tammik's blogposts, thanx for the help here Jeremmy, This is invoked from the external app based on JT's blog as well! This helped a great deal in that I could make async calls in my app without dealing with the frailties of the entire revit17 app crashing.

 

using( Process proc = Process.Start( start ) )
{
proc.WaitForExit();
rc = proc.ExitCode;
}
return rc;

 

 So Have I possibly not implemented the instructions in this link below correctly?

http://thebuildingcoder.typepad.com/blog/2014/07/launching-a-stand-alone-executable.html

If I have is it possible to launch my standalone app and then work in revit in parallel as if the two are in separate universes?

 

 

0 Likes
Accepted solutions (1)
1,518 Views
4 Replies
Replies (4)
Message 2 of 5

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @Anonymous,

If I understand you correctly, I think you're overthinking the issue.

Jeremy's example is intending to wait for the external application to exit.

You do not want this (if I understand). So, simply use Process.Start(PathAndFileNameOfExe).


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 5

Anonymous
Not applicable

Yes thanx matt I was, thanx for the rudder.

 

0 Likes
Message 4 of 5

matthew_taylor
Advisor
Advisor

Pleased to help.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 5 of 5

cxiaoRME8N
Observer
Observer

A follow up: can you call a .bat file instead of an executable? Is there a way to do that? 

0 Likes