Automating SolidWorks 2013 Using Macros
Mike Spens
A guide to creating VSTA macros using the Visual Basic.NET Language
Table of Contents
Macro Basics
Recording the Macro
Code Description
Modifying the Macro
Running Macros
One Button PDF Publishing
Record the Save As Action
Changing Filename and Paths
Model Dimensions Using Excel VBA
SolidWorks VBA Macros
Changing Dimensions
Using VBA in Excel
Selection Methods
Controlling Options
Getting and Setting Options
SolidWorks Constants
Material Properties
Part 1: Basic Material Properties
User Forms
Part 2: Working with Assemblies
Verification and Error Handling
Custom Properties
Part 1: Setting Properties
Part 2: Adding the Ability to Modify Properties
User Interactions
Debugging Tips
Part 3: Add and Delete Properties
Part 4: Save and Copy Between Files
Model Creation
Part 1: Geometry Creation
Creating a New Part
Creating a Sketch
Creating Features
Part 2: Feature Editing and Traversal
Feature Editing
Feature Traversal
Data Import and Export
3D Points
Code Changes
Code Files and Portability
3DCurves
Exporting Point Data
Saving Sheet Metal Flat Patterns
Drawing Automation
Creating Drawings
Batch Processing Files in a Folder
Notes, Annotations and Tables
Creating Notes
Tables
Add Assembly Components
Assumptions
Processing Code
Processing Selections
Traversing Topology
Adding a Part to an Assembly
IMathUtility and Transforms
Working with File References
Finding File References
Functionality Additions
Saving the References List
PropertyManager Pages
Building a PropertyManager Ul
Page Control Creation and Layout
Defining PropertyManagerPage Handlers
Using Notifications (Events) in SolidWorks Macros
Initial Code
WithEvents Declaration
Creating the Notification Functions
ActiveDocChangeNotify
FileSaveAsNotify2
Debugging Notification Macros
Starting SolidWorks including Macros
Workgroup PDM API Basics
Connecting to Workgroup PDM
Workgroup PDM Interfaces
Extract Workgroup PDM Documents
Introduction
Working with Workgroup PDM Documents
Extracting Document History
Conclusion
Workgroup PDM Check In
Establishing the Connection
Processing Documents
Renaming Documents
Checking In Documents
Enterprise PDM API Basics
SolidWorks Enterprise PDM Type Library
Enterprise PDM API Help
Traversing Files in a Folder
More File Properties
Enterprise PDM Files and Variables
Reading Variables
Check Out and Editing Card Variables
Adding Files to the Vault
Favorite Code Examples
Batch Process Files
Traverse Features of a Part
كلمة سر فك الضغط : books-world.net
The Unzip Password : books-world.net
تحميل
يجب عليك التسجيل في الموقع لكي تتمكن من التحميل
تسجيل | تسجيل الدخول