Managed Wrapper - DBObjectCollection

Managed Wrapper - DBObjectCollection

Anonymous
Not applicable
596 Views
1 Reply
Message 1 of 2

Managed Wrapper - DBObjectCollection

Anonymous
Not applicable

How do I convert a DBObjectCollection to an AcDbVoidPtrArray in a managed wrapper class? Any ideas? I have a series of entities (Non-database resident) that I want to pass through to my unmanaged custom object, but I cannot find any references to this type of action.

 

Any suggestions?

 

Mike B

0 Likes
Accepted solutions (1)
597 Views
1 Reply
Reply (1)
Message 2 of 2

DiningPhilosopher
Collaborator
Collaborator
Accepted solution

The value of the UnmanagedObject property of a DBObjectCollection is a pointer to the wrapped AcDbVoidPtrArray*. Call ToPointer() and cast the returned value to AcDbVoidPtrArray*