SOLIDWORKS API allows to export file to foreign format via IModelDocExtension::SaveAs2 and it is only required to specify the corresponding extension for the foreign file (e.g. stp, x_t, igs etc.).

For importing foreign file it is required to use the ISldWorks::LoadFile4 SOLIDWORKS API method. Parameters of this function allows to specify additional importing options.

This section contains code example, macros and scripts for automation import and export functionality of SOLIDWORKS.