How to create flatpattern using C#?

How to create flatpattern using C#?

Anonymous
Not applicable
365 Views
1 Reply
Message 1 of 2

How to create flatpattern using C#?

Anonymous
Not applicable

I'm developing an application to check if there is flat pattern, if not, the application must create.


To check if the flatpattern exists, I use the following code.

 

                    SheetMetalComponentDefinition sheetMetalCompDef = (Inventor.SheetMetalComponentDefinition)prtDoc.ComponentDefinition;

                    if (!sheetMetalCompDef.HasFlatPattern) {
                        //code to create the flatpattern
                    }

 

Anyone know how I could do to create the flatpattern?

 

Thanks!

0 Likes
Accepted solutions (1)
366 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution
Hi,
SheetMetalComponentDefinition.Unfold or Unfold2 is the way to create flat pattern.
0 Likes