How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
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 !
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.
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.
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.
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.
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.
Total Tutorials in Category: 5