Subscribe
Tutorial search

SolidWorks API Tutorials


We hope that you will enjoy our SolidWorks API tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own SolidWorks API tutorial to our site. Thank you !

Sort by:
Using Notifications (events) In Solidworks Macros
Using Notifications (events) In Solidworks Macros
Notifications or Events give you a powerful method for triggering code to run when something happens in SolidWorks. This is the ideal method, for example, if you would like to run a procedure that checks to see if certain file properties have been filled out when a user saves a part. Unlike typical macros which run after the user clicks a button or manually runs the macro, macros that use notifications run continuously.
Difficulty:
Sending Solidworks Files To An Outside Environment
Sending Solidworks Files To An Outside Environment
Provides simple methods for packaging all of the required files for a document to be effectively utilized outside of your environment.
Difficulty:
Macro Basics
Macro Basics
One of the best places to start working with the SolidWorks API (application programming interface) is to use its macro recording capability. When you record a macro in SolidWorks, you are able to record the Basic code required to accomplish many tasks. There are some limitations to what is recorded in a macro, but most of the basic functionality is automatic.
Difficulty:
Part 1: Custom Properties Tutorial
Part 1: Custom Properties Tutorial
One of the most often overlooked areas of SolidWorks is the custom property. In this example we will look at creating custom properties from a program. The first step will be creating custom properties and inserting them into a document. The methods used are valid for parts, assemblies or drawings. The two most common locations for custom properties are in parts and drawings.
Difficulty:
Part 2: Adding User Interface & Ability To Modeify Properites
Part 2: Adding User Interface & Ability To Modeify Properites
There are a couple lines of code that will control the form`s general behavior. The first line is FrmMain.Load. This code loads the form and its associated controls into memory so that properties can be set and methods can be used. It does not make the form visible. At the end of our code module we`ve added the line FrmMain.Show to accomplish this. This process is common with Form objects, but is not absolutely necessary.
Difficulty:
Total Tutorials in Category: 5