.NET

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

COM API vs .NET API ...

554 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: 737
Registered: ‎03-21-2011
Message 2 of 7 (508 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 (488 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: 737
Registered: ‎03-21-2011
Message 4 of 7 (448 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 (421 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 (419 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: 276
Registered: ‎11-29-2008
Message 7 of 7 (416 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.

 

 

 

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

Everything will work just as you expect it to, unless your expectations are incorrect.

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!