System.NotImplementedException inventor presentation file on update function.

System.NotImplementedException inventor presentation file on update function.

Anonymous
Not applicable
388 Views
3 Replies
Message 1 of 4

System.NotImplementedException inventor presentation file on update function.

Anonymous
Not applicable

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

 

 

 

0 Likes
389 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support

Hi Kent,

 

Yes, that seems to be correct.

I cannot see an update button in the UI either - under the QAT (Quick Access Toolbar)

 

I don't have much experience with presentation documents, but could you tell me what you are trying to achieve?

How do you get a presentation document into a state that it needs an update?

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 4

Anonymous
Not applicable

I change some iProperties? for example.

0 Likes
Message 4 of 4

adam.nagy
Autodesk Support
Autodesk Support

Can you drive something in a presentation document with an iProperty, or how does that make the presentation view out-of-date requiring an Update?

 

Can you just provide some steps to get to a point when doing an Update would change the presentation view?

Also how do you update in the UI?



Adam Nagy
Autodesk Platform Services
0 Likes