We are using Inventor API for an application that imports inventor files.
One of the API method SheetMetalComponentDefinition.Unfold() throws exception as below.
The issue is observed on the Inventor build SP1.1
If the part is open in Inventor window, then the API works as expected, otherwise it fails.
It is also observed that, If we uninstall SP1.1 (both updates) the API works fine.
OS: Windows 7
Inventor Professional 2013 64-Bit Edition
Build: 176 Release: 2013 SP1.1 64bit edition
Refer attached test application and test part.
Here is code snippet and exception data.
PartDocument partDocument = this.activeDocument as PartDocument;
SheetMetalComponentDefinition sheetMetalDefinition = partDocument.ComponentDefinition as
MessageBox.Show("Unfold Part: Suceessful.");
System.Runtime.InteropServices.COMException was caught
Message="Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
The issue has high impact on product,
Hence I would apreciate if we get a solution (or atleast a workaround) soon.
Thanks in advance.
yes, I also found only when the document is opened visible can the method work. This looks a problem to me. I logged it.
Currently, you have to open the document visible.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register