API Fundamentals of SolidWorks Enterprise PDM
Length: 2 days
Prerequisites: The Administering SolidWorks Enterprise PDM course, basic experience with the SolidWorks Enterprise PDM software, experience with the Windows(R) operating system, and knowledge of a programming language, preferably Visual Basic™ 2005 or later. In order to get the most out of this class, students should be familiar with the concepts of interfaces, classes, structures, enumerations, collections and recursion.
Description: This course teaches programmers how to use the SolidWorks Enterprise PDM API (Application Programming Interface) to automate and customize SolidWorks Enterprise PDM. The focus of this course is on the fundamental skills and concepts needed to begin using the API to develop applications that can interact with SolidWorks Enterprise PDM. The intended audience for this course is any programmer who will develop applications for automating, customizing or enhancing the functionality of SolidWorks Enterprise PDM.
The topics covered in this course are:
Introduction
About This Course
Windows(R) 7
Lesson 1: Connecting to a Vault
COM Programming
Application Types
Namespaces
The IEdmVault Interface
Debugger feedback
Logging into a Vault
Handling HRESULT Return Values
Programmer’s Reference Guide
Interface Versioning
Lesson 2: Files, Folders, Items and References
The IEdmObject Interface
The IEdmFile Interface
The IEdmFolder Interface
The IEdmPos Interface
Case Study: File Traversal
Case Study: Folder Traversal
File References
The IEdmBatch-Listing Interface
IEdmClear-LocalCache Interface
Case Study: Reference Tree Traversal
Items
Lesson 3: Users and Groups
The IEdmUser Interface
The IEdmUserGroup Interface
The IEdmUserMgr Interface
Case Study: User Traversal
Case Study: Group Traversal
Case Study: Group Member Traversal
Case Study: Using IEdmUser Properties to Search for Users
Case Study: Adding New Users
Lesson 4: Card Variables, Versions and Revisions
Card Variables
File Versions
File Revisions
Case Study: Set Revisions
The IEdmDictionary Interface
Case Study: Dictionaries
Lesson 5: Add-In Applications
SolidWorks Enterprise PDM Add-Ins
The IEdmAddIn Interface
Case Study: Creating an Add-In
The Implements Statement
COM Registration
Installing an Add-In
Debugging a DLL
The IEdmVault Argument
The IEdmCmdMgr Argument
The IEdmAddIn5.OnCmd Method
Case Study: Changing Card Variable Values
Case Study: Generating Serial Numbers
Lesson 6: Task Add-In Applications
SolidWorks Enterprise PDM Task Add-Ins
Task Interfaces
Case Study: Simple Task Add-In
Task Hooks
Case Study: Check Number of Days in State
The IEdmSearch Interface
The IEdmWorkflowMgr Interface
The IEdmWorkflow Interface
Appendix A: C# Examples
Connecting to a Vault Using C#




