'Object' does not contain a definition for 'ContainingOccurrence' C#

'Object' does not contain a definition for 'ContainingOccurrence' C#

Anonymous
Not applicable
472 Views
0 Replies
Message 1 of 1

'Object' does not contain a definition for 'ContainingOccurrence' C#

Anonymous
Not applicable

Hi,

I have an issue where I cannot pass an Inventor.GeometryIntent object accross assembly boundries because it has a generic type parameter that is an embedded interop type. Therefore, I went and changed the "Embeded Interop Types" to false for my Inventor dll reference. Now my code is broken (please see examles below) but, If I do the same thing in VB.NET, everything works just fine. I'm trying to move away from VB to C#. What can I do to resolve this issue?

 

Thanks,

 

ComponentOccurrence _occ = _intent.Geometry.ModelGeometry.ContainingOccurrence;

PropertyDescriptorCollection _prentOccProps = TypeDescriptor.GetProperties(_intentList[_i].Geometry.ModelGeometry.ContainingOccurrence.ParentOccurrence);

 

0 Likes
473 Views
0 Replies
Replies (0)