.NET

Reply
Active Member
svplaser
Posts: 9
Registered: ‎09-07-2012
Message 1 of 7 (517 Views)

COM API vs .NET API ...

517 Views, 6 Replies
09-08-2012 09:28 AM

Hi,

What is the difference between COM API and .NET API of autoCAD?

I thought we need to strictly use the transaction manager and add/delete entities from
Autocad's model space.
But the example in this link is not using "transaction" manager and this is still working.
http://howtoautocad.com/introduction-to-vb-net-in-autocad/
From the comments I learnt that this is using COM API instead of .NET API.

But I cant find any detail about this COM API.

What is this COM API? How is it different from .NET API? 

Will it be supported in all versions of AutoCAD 2D?

regards

ADN Support Specialist
Balaji_Ram
Posts: 692
Registered: ‎03-21-2011
Message 2 of 7 (471 Views)

Re: COM API vs .NET API ...

09-10-2012 07:29 AM in reply to: svplaser

Hi,

 

Here is a blog post that might answer your questions :

http://through-the-interface.typepad.com/through_the_interface/2006/09/com_vs_net_in_a.html

 

If you are considering the differences for any new development, I strongly suggest using the AutoCAD .Net API especially if you are considering writing a plugin that runs inside AutoCAD. But for controlling AutoCAD from an external application, then COM API is the way to go.

 



Balaji
Developer Technical Services
Autodesk Developer Network

Active Member
svplaser
Posts: 9
Registered: ‎09-07-2012
Message 3 of 7 (451 Views)

Re: COM API vs .NET API ...

09-10-2012 08:11 PM in reply to: svplaser

Hi,

 

Is the Autocad .NET developers guide available offline as a PDF or chm file?

 

It is available online at : 

http://docs.autodesk.com/ACD/2011/ENU/filesMDG/WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm

 

( 2011, 2012, 2013 versions etc.) . But I need something offline. 

 

regards

Viswesh

 

ADN Support Specialist
Balaji_Ram
Posts: 692
Registered: ‎03-21-2011
Message 4 of 7 (411 Views)

Re: COM API vs .NET API ...

09-13-2012 05:28 AM in reply to: svplaser

Hi Viswesh,

 

Have a look at arxmgd.chm, arxdev.chm and arxref.chm in the <ObjectARX folder>\docs.



Balaji
Developer Technical Services
Autodesk Developer Network

Active Member
svplaser
Posts: 9
Registered: ‎09-07-2012
Message 5 of 7 (384 Views)

Re: COM API vs .NET API ...

09-13-2012 08:43 PM in reply to: svplaser

Hi,

 

Thanks for the replies. But Iam not getting an email alert when some one replies to my post!.

I do have the "Email me when someone replies" option ticked when submitting my post. 

My registered id is : sales@svplaser.com

 

Not sure if this is problem with my mail id or with this forum?

 

regards

Active Member
svplaser
Posts: 9
Registered: ‎09-07-2012
Message 6 of 7 (382 Views)

Re: COM API vs .NET API ...

09-13-2012 09:01 PM in reply to: Balaji_Ram

Hi,

 

Iam using autocad mechanical 2012 & VB express 2010. 

Can I use ObjectARX2013 SDK or shud I stick to ObjectARX2012 SDK?

 

regards

 

 

Valued Mentor
KerryBrown
Posts: 269
Registered: ‎11-29-2008
Message 7 of 7 (379 Views)

Re: COM API vs .NET API ...

09-13-2012 09:07 PM in reply to: svplaser

svplaser wrote:

Hi,

 

Iam using autocad mechanical 2012 & VB express 2010. 

Can I use ObjectARX2013 SDK or shud I stick to ObjectARX2012 SDK?

 

regards

 

 


The SDK's are meant to be used for the version they are named after.

The distinction is compounded by the changes in the 2013 API.

 

 

 

//-------------------------------------------------------

class keyThumper<T> : Lazy<T>;      another  Swamper

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.