AutoCAD api usage frequency

AutoCAD api usage frequency

mullahabdulkhadeer
Explorer Explorer
562 Views
6 Replies
Message 1 of 7

AutoCAD api usage frequency

mullahabdulkhadeer
Explorer
Explorer

I want to find out which autocad api are used more in frequency , and then test those . but how to get data on their usage frequency  ?  

0 Likes
563 Views
6 Replies
Replies (6)
Message 2 of 7

daniel_cadext
Advisor
Advisor

maybe forum thread counts?

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 3 of 7

kerry_w_brown
Advisor
Advisor

It's probably better for you to use the API that serves your purposes than the one that seems,  by some arbitrary evaluation, the most popular.

 

Your answer will also depend on what you mean by usage frequency. 

 

My guess is that AutoLisp has the most users and is the most frequently used. 

Other than that, your answer will depend on what you want to do and if you can acquire the skills to do it.

You'll need to understand how AutoCAD works.

You'll need to be proficient using the language used by the API

You'll need to learn the particulars of the API

 

 

Regards,

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 4 of 7

mullahabdulkhadeer
Explorer
Explorer

I am actually trying to create an API testing tool  , since the  autocad is moving from  .Net 4.8 to .Net 8  .  Just calling the  API  and comparing the output in both cases to see  if they  have degraded .     Not cloud just trying using   .dll files  .

0 Likes
Message 5 of 7

ActivistInvestor
Mentor
Mentor

If you are trying to measure the frequency at which various apis are being called where the apis are methods of a class or what have you, doing that requires instrumenting your apis. You can use something like AOP (Aspect Oriented Programming) patterns to log and tally the number of calls made to each API and output that to a log or something. However there is no built-in automatic means of doing this you must write the instrumentation code. 

Message 6 of 7

mullahabdulkhadeer
Explorer
Explorer

yeah i think that too is possible i am just thinking how to scrape that  and then filter it to achieve  the result  .

0 Likes
Message 7 of 7

JamesMaeding
Advisor
Advisor

You are kind of asking the typical HHGTTG question where the answer will mean nothing unless the question is more specific. There is no such meaning to "frequency" with the API as a program may loop 10 million times on a subroutine one day, then 1 time the next. How do you define frequency?

It won't matter. The best you can do is watch for bugs with your program, and listen for them on programs you did not write. You must be in contact with your users.

Its not easy. Why do you think Autodesk has cut most of its autocad related development teams?

Not saying I blame them. If you can make same money without them and the headache, you must.


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes