.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

exposing .NET to COM-based apps

4 REPLIES 4
Reply
Message 1 of 5
phtj
195 Views, 4 Replies

exposing .NET to COM-based apps

Hi all,

I have a COM based application that needs to access the AutoCAD and Revit apis. With AutoCAD, I could use the ActiveX interface, but this is not available for Revit. I am wondering if there is a way of exposing the .NET AutoCAD / Revit api to my COM application?

Thanks for any help.

Patrick
4 REPLIES 4
Message 2 of 5
phtj
in reply to: phtj

Hi again,

Following up on my last post, I have read in some of the documentation that the REGASM tool can be used to register the metadata from a .NET component in the System Registry.

Has anyone tried that? I guess that would be with both acdbmgd.dll and acmgd.dll...

Thanks

Patrick
Patrick
Message 3 of 5
Anonymous
in reply to: phtj

Unlike COM automation, the .NET APIs can not be used out-of-process.
AutoCAD applications which use the .NET APIs must be loaded into AutoCAD,
just like ObjectARX applications.

Dan

wrote in message news:5388749@discussion.autodesk.com...
Hi all,

I have a COM based application that needs to access the AutoCAD and Revit
apis. With AutoCAD, I could use the ActiveX interface, but this is not
available for Revit. I am wondering if there is a way of exposing the .NET
AutoCAD / Revit api to my COM application?

Thanks for any help.

Patrick
Message 4 of 5
Anonymous
in reply to: phtj

The managed interop assemblies are not remotable,
which means that you cannot create or manipulate
objects from those assemblies, from another process.

Your only option is to create a remotable layer
using COM, that is loaded into the host process
(AutoCAD or Revit), and have it manipulate the
non-remotable parts.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5388749@discussion.autodesk.com...
Hi all,

I have a COM based application that needs to access the AutoCAD and Revit apis. With AutoCAD, I could use the ActiveX interface, but this is not available for Revit. I am wondering if there is a way of exposing the .NET AutoCAD / Revit api to my COM application?

Thanks for any help.

Patrick
Message 5 of 5
phtj
in reply to: phtj

oh dear

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost