Saving Flat Pattern as SAT

Saving Flat Pattern as SAT

Raider_71
Collaborator Collaborator
180 Views
0 Replies
Message 1 of 1

Saving Flat Pattern as SAT

Raider_71
Collaborator
Collaborator

I have been using the following code for while but for some reason for this part (see attached) it would not work and I cant seem to work out why because if I do it manually then it creates the SAT file with no problem. 

Dim oSMCompDef As Inventor.SheetMetalComponentDefinition = oDoc.ComponentDefinition
Dim oFlat As FlatPattern = oSMCompDef.FlatPattern
Dim StrTempFile As String = Path.Combine(Path.GetTempPath, Path.GetTempFileName)
oFlat.Body.DataIO.WriteDataToFile("ACIS SAT", StrTempFile)

 

The attached part file has a missing ref but you can break the link if needed.

 

Any ideas would be greatly appreciated as I am a bit confused here. I know I am probably missing something silly but yeah...

 

Thanks in advance!

0 Likes
181 Views
0 Replies
Replies (0)