
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am software developer working on Design Automation tool that is using Inventor COM library for Auto generation of Model & drawing.I am migrating from Inventor 2016 to Inventor 2018.Now I am referencing Inventor 2018 object library in my project.
Now I am getting COM Exception message as "The remote procedure call failed" & Source is 'mscorlib' in my code while trying to close a drawing document which is terminating Inventor Application.This exception occurs only when I manually open Inventor 2018 after that I run my standalone application.The Exception will not occur when Inventor Instance is created by my application.
I am getting exception in following block of code
GCADSingleton.Instance.ofrmProgress.SetProgressBarValue("Placing Base and Section View.....", False)
'Open the active document and its drawing document
oIptDoc = GCADSingleton.Instance.oIptDoc
'Get drawing documnet using filename from open files
oDrawdoc = GCADSingleton.Instance.oDrawdoc
Dim sDrapath As String
sDrapath = oDrawdoc.FullFileName
oDrawdoc.Close(True) 'Excption at this line
Please refer attached screenshots for more details
I am stuck at this point so any help will be Highly Appreciable
Thanks in advance
Ajit Nikam
Solved! Go to Solution.