COM api Check for valid AutoCAD license

Anonymous

COM api Check for valid AutoCAD license

Anonymous
Not applicable

I am building a stane-alone VB.NET application using the COM api. Is there a way to check for a valid AutoCAD license from the network license manager? When a license is unavailable I get an error "Cannot create ActiveX component", but that is a little vague and not really telling me that there are no licenses availble.

0 Likes
Reply
Accepted solutions (1)
728 Views
4 Replies
Replies (4)

augusto.goncalves
Alumni
Alumni
Accepted solution
I don't believe there is an API for checking licenses...
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes

Anonymous
Not applicable

@augusto.goncalves wrote:
I don't believe there is an API for checking licenses...

Thanks, too bad, it would have been helpful to have this feature.

0 Likes

dgorsman
Consultant
Consultant

You could always Catch the error, then inform the user "Cannot start AutoCAD, check for licenses, blahblahblah".  Not ideal, but certainly more graceful than crashing out.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes

Anonymous
Not applicable

@dgorsman wrote:

You could always Catch the error, then inform the user "Cannot start AutoCAD, check for licenses, blahblahblah".  Not ideal, but certainly more graceful than crashing out.


Absolutely, I was just hoping there was an api call that I could explicitly check for the license. Thanks.

0 Likes