COM api Check for valid AutoCAD license

COM api Check for valid AutoCAD license

Anonymous
Not applicable
953 Views
4 Replies
Message 1 of 5

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
Accepted solutions (1)
954 Views
4 Replies
Replies (4)
Message 2 of 5

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
Message 3 of 5

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
Message 4 of 5

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
Message 5 of 5

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