Can I use C# for making auto-cad plugin for both Windows and Mac.

Can I use C# for making auto-cad plugin for both Windows and Mac.

Anonymous
Not applicable
2,885 Views
8 Replies
Message 1 of 9

Can I use C# for making auto-cad plugin for both Windows and Mac.

Anonymous
Not applicable

Currently I am working on a project and I am using C# in objectARX. At the end of my project i found that i cannot use the same C# code on Mac. Is there any solution available so that i can make the autocad plugin using same C# code that i have used for developing it for windows. 

 

I have searched that i can use same code for both platforms if i work on c++.  So, is using c++ the only option or i can make it using c# too.

 

Please help.

0 Likes
2,886 Views
8 Replies
Replies (8)
Message 2 of 9

ActivistInvestor
Mentor
Mentor

@Anonymous wrote:

Currently I am working on a project and I am using C# in objectARX. At the end of my project i found that i cannot use the same C# code on Mac. Is there any solution available so that i can make the autocad plugin using same C# code that i have used for developing it for windows. 

 

I have searched that i can use same code for both platforms if i work on c++.  So, is using c++ the only option or i can make it using c# too.

 

Please help.


No C# or .NET on MAC.

 

While there are .NET runtimes and development tools for the MAC, they're not supported by Autodesk, and without that support you can't use .NET or C# to build apps for AutoCAD MAC.

0 Likes
Message 3 of 9

Anonymous
Not applicable

Does it mean that i can only use C++? Only it will help me in developing plugin that works on Mac and Windows while having same code?

0 Likes
Message 4 of 9

ActivistInvestor
Mentor
Mentor

It's either C++ or a subset of LISP (no vlax/vla-* or windows-specific functions).

 

It's kind of like AutoCAD Release 14

 


@Anonymous wrote:

Does it mean that i can only use C++? Only it will help me in developing plugin that works on Mac and Windows while having same code?


 

0 Likes
Message 5 of 9

KIMHENGHOR98
Advocate
Advocate

Autocad now has new vision of Autocad 2023 which supports Mac M Series but I don’t know if it works with .Net

0 Likes
Message 6 of 9

_gile
Consultant
Consultant

Hi,

AutoCAD .NET requires to use the .NET Framework (not .NET Core) and the .NET Framework only supports the Windows operating system.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 7 of 9

KIMHENGHOR98
Advocate
Advocate

Installing Window OS on Mac may work out.

0 Likes
Message 8 of 9

KIMHENGHOR98
Advocate
Advocate

If I am running Window by Bootcamp on Mac m series ,Does C# work with Autocad?

0 Likes
Message 9 of 9

Ed__Jobe
Mentor
Mentor

@KIMHENGHOR98 Asking the same question in three different threads is not polite. I merged your other two threads into one. See the answer there.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes