Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

System.NotImplementedException inventor presentation file on update function.

3 REPLIES 3
Reply
Message 1 of 4
kbo
Advocate
241 Views, 3 Replies

System.NotImplementedException inventor presentation file on update function.

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

 

 

 

3 REPLIES 3
Message 2 of 4
adam.nagy
in reply to: kbo

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
Message 3 of 4
kbo
Advocate
in reply to: adam.nagy

I change some iProperties? for example.

Message 4 of 4
adam.nagy
in reply to: kbo

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report