.NET

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

converting a .NET Object to a COM Object?

169 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 (169 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 (169 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!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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