API Sheet metal: cannot createDXFFlatPatternExportOptions

API Sheet metal: cannot createDXFFlatPatternExportOptions

alexmagnetti
Contributor Contributor
396 Views
2 Replies
Message 1 of 3

API Sheet metal: cannot createDXFFlatPatternExportOptions

alexmagnetti
Contributor
Contributor

I am trying to

1) Import step file

2) ConvertToSheetMetalCmd

3) FusionSheetMetalFlatPatternCmd

4) createDXFFlatPatternExportOptions
1,2,3 working but 4 not .. what I am doing wrong ?
Thank you

 

0 Likes
Accepted solutions (1)
397 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

Is this some ChatGPT-generated code? I'm just curious because there is some weird stuff in there.

I left it as-is except for the bottom, where I changed some of the code, and I believe it will work now.

 

I also discovered some bugs in the API that your code was already working around. I don't know if that was just luck or intentional. I'll see that they get logged.

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

alexmagnetti
Contributor
Contributor
Accepted solution

Thank you for your answer.

No, unfortunately is my own code.

 

I see following differences in code as per attachment but it is not working. It tells me "flatPattern': is not a member of 'adsk::fusion::Design"

0 Likes