Is there a way to know if an external command has been launched?

Is there a way to know if an external command has been launched?

dantartaglia8696
Advocate Advocate
819 Views
7 Replies
Message 1 of 8

Is there a way to know if an external command has been launched?

dantartaglia8696
Advocate
Advocate

Hi,

 

I do not think this is possible but I will ask anyway:

 

I have the need to know if a external command is in use by our users. This is not a custom tool but one purchased. If I use Dynamo as an example, I'm pretty sure I can use user32.dll's FindWindow() to determine if the Dynamo window is open. Is there anything in the Revit API that can determine if/when any external command is executed?

 

Thanks,

Dan

0 Likes
Accepted solutions (1)
820 Views
7 Replies
Replies (7)
Message 2 of 8

Revitalizer
Advisor
Advisor

Hi,

 

you could analyze the Journal file.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 3 of 8

dantartaglia8696
Advocate
Advocate

Yea, I thought about that. We are extracting a lot of Metrics from Revit, it may not be much of a performance hit but I'll have to test that approach.

 

Thanks,

Dan

0 Likes
Message 4 of 8

Revitalizer
Advisor
Advisor
Accepted solution

Hi,

 

this may fit your needings, too:

http://thebuildingcoder.typepad.com/blog/2015/02/automation-ribbon-panel-itemexecuted-and-vacation.h...

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 8

dantartaglia8696
Advocate
Advocate

Thanks, not sure how I missed that article.

0 Likes
Message 6 of 8

Revitalizer
Advisor
Advisor

Hi,

 

thank you for tagging your own answer as the solution although somebody else gave you the hints...

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 7 of 8

dantartaglia8696
Advocate
Advocate

Sorry about that, didn't mean to tag credit.

Message 8 of 8

Revitalizer
Advisor
Advisor

Thank you for correction!

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes