Message 1 of 2

Not applicable
12-17-2016
05:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i want to get the ComponetDefinition Object from a Document, but i can get it only from objects with type Inventor.PartDocument. Do I need some type conversion or anything different? VB.net/VBA is also fine for my 🙂
Inventor.Document oDoc = null;
oDoc = _invApp.Documents.Open(fileName, false); if (oDoc.DocumentType == Inventor.DocumentTypeEnum.kPartDocumentObject) { Inventor.PartDocument oPartDoc =convertToPartDoc(oDoc); Inventor.PartComponentDefinition oPartComponentDefinition = oPartDoc.ComponentDefinition; }
Solved! Go to Solution.