Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Any idea why I cant get the Thumbnail iProperty from a document object derived from a BOM row? If I do this then it does not work:
oCompDef = oRow.ComponentDefinitions.Item(1) Dim oDoc As Inventor.Document = oCompDef.Document Dim thumbnail As stdole.IPictureDisp thumbnail = oDoc.Thumbnail
If I use apprentice then it works:
oCompDef = oRow.ComponentDefinitions.Item(1) Dim oDoc As Inventor.Document = oCompDef.Document Dim strFilename As String = oDoc.FullFileName.ToString Dim oApprentice As New Inventor.ApprenticeServerComponent Dim oApprDoc As ApprenticeServerDocument oApprDoc = oApprentice.Open(strFilename) Dim thumbnail As stdole.IPictureDisp thumbnail = oApprDoc.Thumbnail
Using apprentice is not a problem but I feel that it could slow my program down having to use apprentice.
Any idea why I cant use the Document object derived from a BOMRow object like I have above?
Solved! Go to Solution.