Message 1 of 4
System.NotImplementedException inventor presentation file on update function.

Not applicable
01-26-2015
03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I try to update a presentation file, but it always throws an error. System.NotImplementedException
is somethink missing in the inventor API?
the update function works on all other filetypes but not on a Presentation file?
the save function works on presentation files but not the update or update2 function.
somebody please help. see code below.
Regards Kent boettger
Private Sub TryUpdatePresentation() m_InvApp = GetObject(, "Inventor.Application") Dim x_CurrentDoc As Inventor.Document x_CurrentDoc = m_InvApp.ActiveEditDocument Dim thisdoctype As DocumentTypeEnum = m_InvApp.ActiveEditDocument.DocumentType If thisdoctype = DocumentTypeEnum.kPresentationDocumentObject Then Dim x_PresentDoc As Inventor.PresentationDocument = m_InvApp.ActiveEditDocument x_PresentDoc.Update() MsgBox("Presentation file Update OK!") End If If thisdoctype = DocumentTypeEnum.kAssemblyDocumentObject Then Dim x_AssemblyDoc As Inventor.AssemblyDocument = m_InvApp.ActiveEditDocument x_AssemblyDoc.Update() MsgBox("Assembly file update OK!") End If If thisdoctype = DocumentTypeEnum.kDrawingDocumentObject Then Dim x_DrawingDoc As Inventor.DrawingDocument = m_InvApp.ActiveEditDocument x_DrawingDoc.Update() MsgBox("Drawing file update OK!") End If If thisdoctype = DocumentTypeEnum.kPartDocumentObject Then Dim x_partDoc As Inventor.PartDocument = m_InvApp.ActiveEditDocument x_partDoc.Update() MsgBox("Part update update OK!") End If End Sub