You need to be logged in to view this content. Please login or become a member.

<<  Prev   |   Index   |   Next  >>


This lesson covers opening, saving, and exporting native and non-native documents with the SolidWorks API. Many tips for using API calls are covered.


In 2012 you can use ISldWorks::ActivateDoc3 to control whether the document is rebuilt after activation. See our example “Traverse all open documents” for how to use ActivateDoc3 in combination with ISldWorks::GetDocuments to cycle through all open documents.

In lesson 3.5 you will learn how to get the current template path from the system options, removing the need to specify your template path in the macro.

Lesson Files

Lesson 3.1 code


Lesson 3.1 homework part A solution
Lesson 3.1 homework part B solution
Lesson 3.1 homework part C solution