Due to blackmail and extortion a request from my good friend Rohizzle, I have updated the popular Number Generator to work with 2009. I have not made any enhancements so you can refer to the previous version’s post for instructions.
Net: This is an addin for SolidWorks Entperprise PDM that enables users to pick, at run-time, the numbering sequence to use for auto-numbering.
API development and customization is all about automating repetitive tasks and I am sometimes amazed at how much I have been able to do over the years to make end users’ daily tasks easier to accomplish. One place I have fallen short, however, is automating my own repetitive development tasks. That is why decided to create a Visual Studio Template to automate the creation of PDMWorks Enterprise Addins. This is similar to the SolidWorks Software Development Kit offered by SolidWorks for developing SolidWorks Addins.
Over the past few months I have received numerous emails from folks using the original PDMWE Number Generator. It is such a simple little app that I was pleasantly surprised at all of the nice feedback people gave me regarding it. To show my appreciation, I have modified the Number Generator to allow it to work with multiple serial number sequences ”on the fly.”
You have always had the ability to set up muliple serial number generators in PDMWorks Enterprise but now the user can decide at File/Folder creation time which serial number to use. An anticipated use case with this improved version of the tools is for users who have multiple categories of parts with numbers being assigned by category. Note: Even though the functionality has been expanded, the tool is still very easy to install and configure.
So how does it work?
A year or two ago I read a book that changed the game for me. The book was called .NET Gotchas and it made me about 10x more effective as a developer. The book details 75 common pitfalls with .NET development and explains how to avoid them. I was knee-deep in a few of those pitfalls when I found the book at my local library. In fact, I was at the library specifically to get help for a few problems I was having with a PDMWE Addin project that I was working on at the time. The addin was written for continue
What Does This Addin Do?
This Addin “listens” for Command Button events to be “fired” from data cards in PDMWorks Enterprise. This could be File Cards (i.e. for existing files or folders) or Input Cards (i.e. for new files or folders). If the command string of the Command Button matches our criteria, then the Addin will pull the next Serial Number from a Serial Number sequence in the vault. The best thing about the Addin is that the Serial Number sequence name is specified as part of the command string. This means that the Addin can be configured very easily by a non-programmer to run on any number of different Serial Number sequences. In other words, our Addin is Extensible (sorry, I couldn’t resist).
Why Do I Need A Custom PDMWorks Enterprise Addin For Handling Document Numbers When PDMWorks Enterprise Already Has “Serial Numbers” Functionality That Handles This?
PDMWorks Enterprise is a great tool and the Serial Numbers functionality is very useful. However, as implemented in PDMWorks Enterprise, the Serial Numbers are kind of wired directly in to the system and don’t allow much flexibility in terms of when and how they are used. You either set your part number to be populated from the Serial Number sequence or you don’t. There is no “let’s do it this way for this case and another way for this other case.” By writing a very simple Addin, continue