Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Skanda_UNI
in reply to: Skanda_UNI

Hello!

 

i tried a few things and looked up a view solutions 

https://forums.autodesk.com/t5/inventor-customization/inventor-2018-ilogic-error/td-p/7073741

implemented - not working

https://www.aplicit.com/erreur-ilogic-exception/

implemented - not working

https://developercommunity.visualstudio.com/content/problem/32072/invalid-pointer-exception-from-hre...

here it says i can fix this by repairing the visual studio installation (???)

https://forums.autodesk.com/t5/inventor-customization/ilogic-made-pdf-w-rev/td-p/7154650

implemented that, but it did not work out

 

It all says that the problem is in the PDFAddIn section. And as the error message appears when the top level drawing is opened i assume that the problem is there. For me it just trial and error.

SyntaxEditor Code Snippet

oAsmDrawing = ThisDoc.ChangeExtension(".idw")
oAsmDrawingDoc = ThisApplication.Documents.Open(oAsmDrawing, True)
oAsmDrawingName = Left(oAsmDrawingDoc.DisplayName, Len(oAsmDrawingDoc.DisplayName) -4)
'write out the PDF for the Top Level Assembly Drawing file' if PDF exists and is open or read only, resume next
 'Set the PDF target file name'oDataMedium.FileName = oFolder & "\" & oAsmDrawingName & ".pdf"
oDataMedium.FileName = oFolder & "\" & oAsmDrawingName & "_v" & Microsoft.VisualBasic.Strings.Format(oAsmDrawingDoc.FileSaveCounter,"00#") & ".pdf"
'Write out the PDF'PDFAddIn = ThisApplication.Documents.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")'PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
'Close the top level drawing
oAsmDrawingDoc.Close

 

unfortunately i guess my programming skills are not sufficient to solve this problem.

Maybe you could give me hint, what to do.

 

thank you