Learn how to stay in touch with CodeStack latest updates about SOLIDWORKS API, C#, Visual Basic, DevOps and software development tutorials and tips & trick. Never miss the releases of new useful macros or applications to enhance your SOLIDWORKS experience.
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.