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: 

Unfold() API fails on Inventor 2013 SP1.1

4 REPLIES 4
Reply
Message 1 of 5
Vaal_it
715 Views, 4 Replies

Unfold() API fails on Inventor 2013 SP1.1

Hi,

 

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

 

Imp Note:

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.

 

 

 

 

Additional Info:

 

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 

if (!sheetMetalDefinition.HasFlatPattern)
{
     sheetMetalDefinition.Unfold();
     MessageBox.Show("Unfold Part: Suceessful.");
}

 

Exception Detail

System.Runtime.InteropServices.COMException was caught
Message="Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Source=""
ErrorCode=-2147467259
StackTrace:
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.SheetMetalComponentDefinition.Unfold()

 

The issue has high impact on product,

Hence I would apreciate if we get a solution (or atleast a workaround) soon.

 

 

Thanks in advance. 

Tags (3)
4 REPLIES 4
Message 2 of 5
xiaodong_liang
in reply to: Vaal_it

Hi,

 

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.

Message 3 of 5
Vaal_it
in reply to: xiaodong_liang

Hi,

 

Thanks for the follow up. Is there any update available on this issue?

 

Regards

 

Message 4 of 5
xiaodong_liang
in reply to: Vaal_it

Sorry, I have not heard an update about it.

Message 5 of 5

Cool! Eight years, and yet no solution! Not even a hint in the Help!

Autodesk, you're the greatest!

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

Post to forums  

Autodesk Design & Make Report