.NET

Reply
*Corey A. Layton
Message 1 of 3 (166 Views)

converting a .NET Object to a COM Object?

166 Views, 2 Replies
06-06-2006 02:16 PM
I have a: (.NET)
Autodesk.Aec.DatabaseServices.DBObject

that needs to be a: (COM)

Autodesk.AutoCAD.Interop.Common.AcadObject

I'm getting a error in my VB.NET expression:

'cannot convert to an AutoCAD Interface Object'...

how can I convert?
*Bobby C. Jones
Message 2 of 3 (166 Views)

Re: converting a .NET Object to a COM Object?

06-06-2006 08:10 PM in reply to: *Corey A. Layton
Hey Corey,
DBObject instances have an AcadObject property. It returns on Object, but
this can be cast to a Autodesk.AutoCAD.Interop.Common.AcadObject.
--
Bobby C. Jones

"Corey A. Layton" wrote in message
news:5197751@discussion.autodesk.com...
I have a: (.NET)
Autodesk.Aec.DatabaseServices.DBObject

that needs to be a: (COM)

Autodesk.AutoCAD.Interop.Common.AcadObject

I'm getting a error in my VB.NET expression:

'cannot convert to an AutoCAD Interface Object'...

how can I convert?
*Corey A. Layton
Message 3 of 3 (166 Views)

Re: converting a .NET Object to a COM Object?

06-07-2006 04:35 AM in reply to: *Corey A. Layton
Bobby C. Jones wrote:
> Hey Corey,
> DBObject instances have an AcadObject property. It returns on
> Object, but this can be cast to a
> Autodesk.AutoCAD.Interop.Common.AcadObject.

thank you, Bobby.

getting .AcadObject from the DBObject was all I needed!
Announcements
Autodesk Alert | We are currently working on restoring Previous Version License request access in the Autodesk Subscription Center. If you are a subscription customer and would like to request a Previous Version License, please use this link as a temporary workaround. We apologize for the inconvenience and thank you for your patience.
Need installation help?

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