I am new to .Net and trying to do some C# programming. Where can I find some Autocad sample code for download?. Also where can I get the following namespaces?.
I shall be thankful for help.
You might want to download this example:
I am using AutoCAD 2011 and Visual Studio (pro) 2010. I down loaded ObjectARX 2010-2012 (for C#) and was trying to reference the three dlls namely: acdbmgd.dll, acmgd.dll and accoremgd.dll and ended up in an emplty folder each time. It appears what is contained in the SDK are only C++ classes. What seems to be the problem?.
Thanking in advance.
I can't test this issue, because I still
working with A2010 only
>> trying to reference the three dlls namely: [...] accoremgd.dll
AcCoreMgd.DLL has to be used starting with 2013, not for 2012 and previous.
- alfred -
Thank you for replying. Can you access the C# namespaces I have indicated in my fisrt posting using visual studio 2010?. If so ,pl let me know how you did it. I downloaded the Sep 6 examples indicated in the link you gave me, but cannot use the samples. Perhaps these are applicable to A2013.
Thanks for your reply. As you might have observed I use A2011 and Visual Studio 2010. My problem is how to use them for .Net API and referencing those dlls and use the name spaces indicated for C#.
If you are using Visual Studio 2010 and AutoCAD 2011, then you will need to set the .Net Framework version to 3.5 in the project settings. You can then reference the Acmgd.dll and acdbmgd.dll from the <ObjectARX 2011>\inc folder. As Alfred said, you will not have the accoremgd.dll in the ObjectARX 2011 folder.
Set the references as "CopyLocal" as False and you are all set.
I have attached a simple sample project that I created using VS 2010 and that works with AutoCAD 2011.
Hope this helps.
Access a broad range of knowledge to help get the most out of your products and services.