09-25-2017
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-25-2017
04:18 AM
Found it:
SyntaxEditor Code Snippet
'Part file If oDoc.DocumentType = Inventor.DocumentTypeEnum.kPartDocumentObject And oDoc.SubType <> "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then If oDoc.ComponentDefinition.IsiPartFactory Or oDoc.ComponentDefinition.IsiPartMember Then MessageBox.Show("This is a iPart", "iPart") Return End If MessageBox.Show("This ia a Part", "Part") 'Assembly file Else If oDoc.DocumentType = Inventor.DocumentTypeEnum.kAssemblyDocumentObject Then If oDoc.ComponentDefinition.IsiAssemblyFactory Or oDoc.ComponentDefinition.IsiAssemblyMember Then MessageBox.Show("Dit is een iAssembly", "Title") Return End If MessageBox.Show("Dit is een Assembly", "Title") End If