Request a quote Make a payment

SOLIDWORKS API Fundamentals – 3 days

Lesson 1: Using the Macro Recorder

  • Macro Recording
  • Macro Toolbar
  • Understanding How Macro Code Works
  • Variable Declaration
  • Entry Point Procedure
  • SOLIDWORKS Application Object
  • SOLIDWORKS Document Object
  • SOLIDWORKS API Calls
  • Procedure End
  • Understanding How to Call Members on API
  • Interfaces
  • Passing Parameters
  • Cleaning Up Code
  • Commenting Code
  • Debugging Code
  • Adding Forms to a Macro
  • Exercise 1: Recording a Macro
  • Exercise 2: Adding Macro Code to a VBA
  • Button Control
  • Exercise 3: Adding User Input Fields on a VBA
  • Form

Lesson 2: The API Object Model

  • SOLIDWORKS API Object Model
  • Visual Basic Automatic Type Casting
  • Application Objects
  • SOLIDWORKS Object
  • SOLIDWORKS 2016 Type Library
  • IntelliSense
  • Early vs. Late Binding
  • Case Study: Connecting to New Documents
  • ModelDoc2 Object
  • ModelDocExtension Object
  • PartDoc Object
  • AssemblyDoc Object
  • DrawingDoc Object
  • Case Study: Connecting to Existing Documents
  • Exercise 4: Working with New Documents
  • Exercise 5: Working with Existing Documents

Lesson 3: Setting System Options and Document Properties

  • User Preferences - System Options
  • Setting Checkboxes
  • Setting Textboxes with Integers
  • Setting Textboxes with Doubles
  • Setting Textboxes with String Values
  • Setting List boxes
  • Setting Radio Buttons
  • Setting Slider Bars
  • User Preferences - Document Properties Locating the Correct APIs and Enumeration Values
  • User Preference Tables For System Options, Document Properties and Menu Items
  • Exercise 6: Change Multiple System Options
  • Exercise 7: Change Multiple Document Properties

Lesson 4: Automating Part Design

  • Case Study: Automation Tool for Parts
  • Setting Material
  • Creating the Sketch Rectangle
  • Adding Dimensions
  • Selection on Creation
  • Creating the Sketch Circle
  • Creating Extruded Features
  • Enabling Contour Selection for the Extrusion
  • Creating Revolved Features
  • Standard Commands
  • View Commands
  • Sketch Commands
  • Sketch Tools Commands
  • Features Commands
  • Sketch Relations Commands
  • Reference Geometry Commands
  • Exercise 8: Automating the Part Creation Process

Lesson 5: Assembly Automation

  • Case Study: Automation Tool for Assemblies
  • Transforms
  • Creating MathTransforms
  • The Transformation Matrix
  • Activating Documents
  • Invisible Documents
  • Object Collections
  • Establishing the Curve and Edge Collections
  • Establishing the Face Collection
  • Getting Adjacent Faces
  • Establishing the Points Collection
  • Getting Curve Parameters
  • Adding and Mating the Knobs to the Chassis
  • Exercise 9: Adding Components
  • Adding Mates
  • Adding Components

Lesson 6: Drawing Automation

  • Case Study: Automating Drawing Creation
  • Getting Configuration Names
  • Creating Sheets
  • Creating Views
  • Traversing Drawing Views
  • Inserting Annotations
  • Saving Drawings in Different Formats
  • Drawing Commands
  • Annotation Commands
  • Layer Commands
  • Line Format Commands
  • Exercise 10: Drawing Automation

Lesson 7: Selection and Traversal Techniques

  • Case Study: Programming With a Selected Object
  • Selection Manager
  • Accessing the Selection Manager
  • Counting Selected Objects
  • Accessing Selected Objects
  • Getting Selected Object Types
  • Getting Feature Type Names
  • Feature Data Objects
  • Accessing the Feature Data Object
  • Accessing Selections
  • Releasing Selections
  • Modifying Feature Data Properties
  • Modify the Object Definition
  • The SOLIDWORKS BREP Model
  • Case Study: Feature Manager Traversal
  • Face Material Properties
  • Returning a List of Body Pointers
  • Case Study: Body and Face Traversal
  • Traversing Topology and Geometry
  • Traversing the Feature Manager Design Tree from the Top
  • Displaying Feature Names and Types
  • Setting Feature Suppression
  • Setting Feature UI State
  • Obtaining a Feature by Feature Manager
  • Exercise 13: Traversing the Feature Manager Design Tree
  • Exercise 12: Handling Preselection 2
  • Exercise 11: Handling Preselection 1
  • Design Tree Position

Lesson 8: Adding Custom Properties and Attributes

  • Case Study: Custom Properties
  • Adding Custom Properties to a SOLIDWORKS Document
  • Custom Property Manager Object
  • Setting and Getting Custom Property Values
  • Getting Custom Property Names
  • Getting the Custom Property Count
  • Case Study: Configurations With Custom Properties
  • Finding the Cylindrical Faces and Attaching Attributes
  • Parameter Object
  • Attribute Object
  • AttributeDef Object
  • The Attribute Objects
  • Naming Attributes
  • Case Study: Document Attributes
  • Adding Summary Information
  • Case Study: File Summary Information
  • Using the API to Return the Mass Properties
  • Returning Mass Properties From a SOLIDWORKS Model

Lesson 9: The SOLIDWORKS API SDK

  • The API SDK
  • Installing the SDK
  • Case Study: Creating a VB.NET Add-In References
  • Comparing Addin DLLs and Stand-Alone Executables
  • Loading and Running an Add-in Application
  • Case Study: Creating a C# Add-in
  • Case Study: C++ Add-Ins
  • Compiling a C++ Add-In
  • Loading the C++ Add-In
  • Debugging the C++ Add-in
  • Choosing a Programming Language

Lesson 10: Customizing the SOLIDWORKS User Interface

  • Case Study: Customizing the UI With VB.NET
  • Debugging the DLL
  • Debugger Keyboard Shortcuts
  • Understanding The Add-in Code
  • Importing Namespaces
  • The Add-in Class
  • Understanding the GUID
  • Connecting to SOLIDWORKS
  • Bidirectional Communication
  • Setting Callback Information
  • Custom Menus
  • Custom Command Items
  • Command Tab Boxes
  • Command Tabs
  • Command Tab Box Commands
  • Property Page Members Add-In
  • Property Pages
  • Adding Toolbars
  • The Bitmap Handler Class
  • Adding Toolbar Bitmaps to a VB.NET Solution
  • Creating the Toolbar Bitmaps
  • Creating and Adding Custom Toolbars to an Add-in
  • Adding Controls
  • Adding Group Boxes
  • Property Page Groups and Controls
  • Creating a Property Manager Page
  • PropertyManager-Page2Handler8
  • PropertyManager-Page2
  • SOLIDWORKS UserPMPage SldWorks Add-In handler
  • Exercise 18: Implement Controls on a Property Manager Page
  • Exercise 17: Implement Toolbar Buttons
  • Exercise 16: Implement a New Menu
  • Custom Model View Windows
  • Custom Pop-up Menus
  • Custom Status Bars
  • Other Areas of Customization
  • Removing Menus and Toolbars
  • Adding Picture Labels to Controls

Lesson 11: Notifications

  • Notifications
  • Notifications in VBA
  • Case Study: Simple Notification
  • The Class Module
  • Case Study: Using Notifications in .NET
  • The Add Handler Keyword
  • The Address Of Keyword
  • The Event Handler Classes
  • The Document Event Handler Class
  • Attaching the Document Event Handlers
  • Inheritance
  • Polymorphism
  • The Derived Event Handler Classes
  • The Doc View Class
  • Detaching the Document and Model View Event Handlers
  • Detaching the SOLIDWORKS Event Handlers
  • Interfaces That Support Notifications
  • Exercise 19: Handling Events Using the Add-in Wizard Solution
BEACON © All Rights Reserved.2017