Inventor Customization

Reply
Member
Vaal_it
Posts: 4
Registered: ‎12-13-2012
Message 1 of 4 (310 Views)

Unfold() API fails on Inventor 2013 SP1.1

310 Views, 3 Replies
02-20-2013 06:35 AM

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. 

ADN Support Specialist
xiaodong.liang
Posts: 1,233
Registered: ‎06-12-2011
Message 2 of 4 (276 Views)

Re: Unfold() API fails on Inventor 2013 SP1.1

02-27-2013 07:16 PM 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.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
Vaal_it
Posts: 4
Registered: ‎12-13-2012
Message 3 of 4 (242 Views)

Re: Unfold() API fails on Inventor 2013 SP1.1

03-26-2013 10:25 PM in reply to: xiaodong.liang

Hi,

 

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

 

Regards

 

ADN Support Specialist
xiaodong.liang
Posts: 1,233
Registered: ‎06-12-2011
Message 4 of 4 (228 Views)

Re: Unfold() API fails on Inventor 2013 SP1.1

03-29-2013 12:05 AM in reply to: Vaal_it

Sorry, I have not heard an update about it.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube