Hello:
I am using some ActiveX controls that install with a cad package. There is an object called an entity that represents a drawing entity like a line or circle. Some information is not available from the entity object becuase it is a more general type object used more for navigation through all the entities. The entity object provides a method called "EntityDataObject" that returns an object that provides methods for manipulating the entity at a deeper level. If I use code like this I don't get the object:

VB Code:
  1. Dim DcEntity as Entity
  2. Dim DcLine as entlline

then later...

VB Code:
  1. DcLine = Entity.EntityDataObject

When I do this I it's as if I have done this instead:

VB Code:
  1. DcLine = Nothing

When I check the value of the DcLine variable in the local window just after executing the Entity.EntityDataObject method the value for that object is:

System._ComObject

I am assuming that the system._comObject is an object that contains the object that I need.

How can I get around this? Can I somehow get the actual object that I need through this?

Thanks,
Eric