Message 1 of 1
Saving Flat Pattern as SAT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!