Message 1 of 1
'Object' does not contain a definition for 'ContainingOccurrence' C#

Not applicable
04-29-2015
11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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);