05-17-2023
09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2023
09:54 AM
Hi Adam,
I found one reason for setting Embed Interop Types to true. The GetType() method on a SelectSet item returns a "__ComObject", so it it useless for determining the type of the Inventor object.
drawingDocument.SelectSet[1].GetType()
Setting Embed Interop Types to true, makes the Type property available on the SelectSet, which returns an ObjectTypeEnum.
drawingDocument.SelectSet[1].Type
But choosing between this and the reported issues with events, let's me think twice about actually enabling it.
Luckily I have found a workaround to get the ComObject type.
Regards,
Alain