Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Found the solution the line for exporting is:

oCompDef.FlatPattern.Body.DataIO.WriteDataToFile("ACIS SAT", sFname)

i was actually missing the ".Body." part