Hello Yanhua,
> Would you like to provide an API function to get the dongle status in the future?
As you be aware of, SolidWorks is migrating to "Software Activation" for its security. Hence in the not too distant future dongles will be phased out.
> How to identify SW running with a dongle, but a floating license?
I'm afraid we don't offer API access to the SolidWorks security mechanism, independent of the type of mechanism used.
> If no dongle, my program would not be able to create the dispatch to SW application.
Using failure to create an instance of the COM object representing SolidWorks, would be already an indication that SolidWorks is not properly licensed.
I would also like to refer you to the solutions suggested as part of Service Request SR-1-348618481.
For your convenience I've attached the last email for that Service Request.
Regards,
Frank |