简体   繁体   中英

How to register when Revit start but fail to get a licene c#

Using Revit API, I am trying to register all the user in my company when they start Revit.I used the onstart and on shutdown function in an application to monitor that.

The problem are those who fail to get license from the license server, because all the licenses are taken, the onstart function doesn't feel them. How to capture those who try to get a license. RGRDS

You could use the Windows API to catch and log the launch of Revit.exe. Then, secondly, you could catch and launch the OnStartup event handler call. If you detect the former without the latter, you have what you are after.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM