.NET

.NET

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

converting a .NET Object to a COM Object?

173 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 (173 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 (173 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.