Most efficient language to code with in AutoCAD?

Most efficient language to code with in AutoCAD?

Anonymous
Not applicable
3,449 Views
1 Reply
Message 1 of 2

Most efficient language to code with in AutoCAD?

Anonymous
Not applicable

Hello,

 

I have little experience coding within AutoCAD but I'm interested to learn.

What language would be the most efficient to code with? Or would any . NET language work?

 

For example, I know that when creating pulg-ins for Grasshopper, java takes longer to compile that C#.

 

Most of my experience is with C#.

I am looking to create a plugin involving only 2d line work and hatching.

 

Any direction on the topic would be appreciated.

0 Likes
3,450 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

Firstly, AutoCAD have different types of API that can be programmed with different languages/technologies. Since you post in AutoCAD .NET discussion forum, I assume you want to do AutoCAD .NET API programming.

 

So, any .NET language can be used. However, just as main stream of generic .NET programming, C# and VB.NET are mostly used, but if you prefer, F#, Iron Python.net would also work.

 

As for "efficient", it depends on what do you mean. If you mean the efficiency of code execution, there there is no difference, because the code from any .NET language would be compile to the same IL (intermediate language); then upon execution the JIT kicks in right at execution to convert the IL code into native code.

 

If you mean efficiency of writing code, it would be purely depend on which language you master the best. In common sense, C# is most natural choice, considering the most available resources/helps you would be able to find.

 

If your "efficiency" means most concise code (write minimum lines of code for the same operation), I'd say F# is the one. But you may have very often to be on your own when you could not find sufficient help, such as sample code, support discussion...

 

Since you have already had experience on C#, you are good to go ahead, no "efficiency" needs to be worried.

 

Norman Yuan

Drive CAD With Code

EESignature