SolidWorks API

SolidWorks Instructor Led Training

The SolidWorks API course teaches you how to use the SolidWorks API (Application Programming Interface) to automate and customize SolidWorks.

 

Course details and prerequisites:

Duration: 3 Days
Type: Instructor Led
Level: Intermediate

Prerequisites:

  • Experience with the Windows operating system
  • Attended the SolidWorks Visual Basic course
  • Used the software for a few months
After the training you will be able to:
  • Automate SolidWorks for your working environment.
  • Design custom applications to increase workflow and reduce mundane SolidWorks tasks
  • Enhance SolidWorks tools to better suit your needs

 

Course Outline

Introduction

  • About This Course
  • Windows® XP
  • Use of Color
  • Getting Started
  • Macro Recording Tips

Lesson 1: Using the Macro Recorder

  • Macro Recording
  • Macro Toolbar
  • Understanding How Macro Code Works
  • Understanding How to Call Members on API Interfaces
  • Passing Parameters
  • Cleaning Up Code
  • Adding Forms to a Macro

Lesson 2: The API Object Model

  • SolidWorks API Object Model
  • Application Objects
  • Case Study: Connecting to New Documents
  • Case Study: Connecting to Existing Documents

Lesson 3: Setting System Options and Document Properties

  • User Preferences - System Options
  • User Preferences - Document Properties
  • Locating the Correct APIs and Enumeration Values
  • UserPreference Tables For System Options
  • UserPreference Tables For Document Properties

Lesson 4: Automating Part Design

  • Case Study: Automation Tool for Parts

Lesson 5: Assembly Automation

  • Case Study: Automation Tool for Assemblies
  • Exercise: Automation Tool for Assemblies

Lesson 6: Drawing Automation

  • Case Study: Automating Drawing Creation

Lesson 7: Selection and Traversal Techniques

  • Case Study: Programming With a Selected Object
  • The SolidWorks BREP Model
  • Case Study: Body and Face Traversal
  • Case Study: Feature Manager Traversal

Lesson 8: Adding Custom Properties and Attributes

  • Case Study: Custom Properties
  • Case Study: Configurations With Custom Properties
  • Case Study: File Summary Information
  • Case Study: Document Attributes
  • The Attribute Objects
  • Case Study: Face Attributes