Need sample for using nuget package

Need sample for using nuget package

Ahmadi_rad
Enthusiast Enthusiast
485 Views
2 Replies
Message 1 of 3

Need sample for using nuget package

Ahmadi_rad
Enthusiast
Enthusiast

Hello

Downloaded nuget api, soon I understood that in .net core we do not have marshal.getactiveobject().

I was wondering how to connect to existing running instance of autocad or maybe we should always create a new instance.

In general, may I ask were is documentatio about such matters located?

Thanks

0 Likes
486 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

You might want to make your question clearer: what is nuget api? Nowadays, many tools/components/APIs are available as nuget packages. So, you'd better to specify what API you downloaded as nuget package for you AutoCAD .NET plugin development. As far as AutoCAD .NET API programming, there is no requirement for you do download/install any software package via nuget. 

 

Since you mentioned .NET Core (now is .NET5, and will become .NET6 later this year), AutoCAD .NET API (and AutoCAD itself) currently does not support .NET Core/5/6.

 

You also mentioned "connect to existing running instance", which, I suppose, is the AutoCAD instance. This would have nothing to do with AutoCAD .NET API, the code of which can only run inside AutoCAD. You would use AutoCAD COM API to connect to AutoCAD instance. While .NET CORE does support COM, it is not a major focus of .NET CORE, because .NET Core is meant for "cross-platform", while COM is windows only and 32bit or 64bit only.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

Ahmadi_rad
Enthusiast
Enthusiast

Thanks for your answer. 

I was on missundestanding that AutoCAD.NET.Core is a .NET CORe library, which obviously is not. Then the rest of question can be disragred.

 

0 Likes