A Free Template For Creating PDMWorks Enterprise Addins - It’s Automagically Delicious

July 17, 2008

My MugshotAPI 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.

For those of you who may not be familiar with Visual Studio Templates, they are very similar to SolidWorks Templates.    Within SolidWorks Templates, you store things like unit information, material information and dimensioning standards information.  Within Visual Studio Templates you store References, source code files (e.g. classes, modules, forms, etc…) and the like.  Hitherto, if you wished to create a custom PDMWorks Enterprise Addin, you would create a generic Visual Studio Class Library, add a reference to the PDMWorks Enterprise Type Library (i.e. EDMLib), add a class file that implements the IEdmAddIn5 interface and then add your custom code to the GetAddinInfo and OnCmd event handlers.  With the PDMWE Addin Template, all you have to do is select the PDMWE Addin template from Visual Studio’s New Project dialog.  All the files and references are added automagically.  It is ready to go and all you have to do is add your custom code to the GetAddinInfo and OnCmd event handlers.  There is already some custom code there to for your reference.  Currently, the Template is only available for Visual Basic but if some C# developer out there wants to send me a stubbed out PDMWorks Enterprise Addin written in C#, then I would be happy to package it into a Visual Studio Template.

This is going to save me a lot of time and I hope it will save you a lot of time too.  I also hope it saves SolidWorks API Support a lot of time so that they can spend more time on my Service Requests : )  I guess on one level it is not so bright of me to make this thing public as it will also save time for my competitors in the PDMWorks Enterprise API Consulting world.  It seemed like the right thing to do though considering all of the help that people have provided me with over the years.  I hope you enjoy it.  As always, if you use it, then I ask that you leave a comment with your feedback.  It is a small price to pay.

 

Installing The PDMWorks Enterprise Addin Template

1.        Download the installer from here and unzip it.

2.       Run the installer.  You should see these screens:

  PDWorks Enterprise Addin Template For Visual Basic

PDWorks Enterprise Addin Template For Visual Basic

PDWorks Enterprise Addin Template For Visual Basic

PDWorks Enterprise Addin Template For Visual Basic

PDWorks Enterprise Addin Template For Visual Basic

PDWorks Enterprise Addin Template For Visual Basic

Note:  The Addin Template will only be installed for the releases of Visual Studio that you have installed.  Visual Studio 2005 and 2008 are supported.  If the installation is unsuccessful, then you can follow the manual installation steps below.

 

PDWorks Enterprise Addin Template For Visual Basic

 Finished!  Now you are ready to create your first Custom PDMWorks Enterprise Addin using the PDMWE Addin Template.

 

Creating Your First Addin With The PDMWE Addin Template

1.         Launch Visual Studio. 

2.       Select Create Project from the Start Page or File, New, Project from the toolbar.

 PDWorks Enterprise Addin Template For Visual Basic

 

3.        Select PDMWE Addin from the New Project dialog’s Visual Basic folder.

 PDWorks Enterprise Addin Template For Visual Basic

 

4.        Provide a name for your new Addin and press the Ok button.

 

A new Addin is created for you with a functional PdmweAddin class and a reference to EDMLib.  The Addin is functional as is and may be compiled and debugged before adding any additional code if you want to try it out. 

 PDWorks Enterprise Addin Template For Visual Basic

 

 Enjoy!

 

 

Manual Installation Steps For A Failed Installation

 

1.        Go to the installation folder (C:\Program Files\Extensible CAD Technologies\PDMWE Addin Template\ is the default) and find the PDMWEAddin.zip file.

 PDWorks Enterprise Addin Template For Visual Basic

 

2.        Copy the PdmweAddin.zip file to your Visual Basic Project Templates Folder .  By default, this folder is located at My Documents\Visual Studio 200X\Templates\Project Templates\Visual Basic

 PDWorks Enterprise Addin Template For Visual Basic

  

You should now be ready to go!

 

Uninstalling The Template

 PDWorks Enterprise Addin Template For Visual Basic

To uninstall the PDMWE Addin Template, simply find “PDMWE Addin Template” on  Add/Remove Programs and uninstall it from there.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Comments

5 Responses to “A Free Template For Creating PDMWorks Enterprise Addins - It’s Automagically Delicious”

  1. Jeff Sweeney on August 19th, 2008 10:21 pm

    So handy!
    Hear the people in the stands chanting “Coooooope! Cooooooope!”?

  2. Jeff Cope on August 19th, 2008 11:44 pm

    Someone finally noticed the free template that took me a day to figure out (damn that Visual Studio Documentation). Oh wait. It could be sarcasm. Oh well. I don’t care. I’m just glad someone noticed the tool. It would be a shame to do all that work for nothing.

    FYI - I was just getting ready to do a post that builds on your very nice selective notification tool (from your blog post) but I saw that 2009 adds that capability out of the box. Oh well. I was pretty excited about it but I guess that’s just the way it goes. SolidWorks tries to put us out of business each year by adding new functionality that we used to get to write custom programs for : )

    I might do it anyways as it

  3. Jeff Sweeney on August 20th, 2008 9:18 pm

    I don’t think I have ever had a routine that I have written that has lasted more than two releases before they become obsolete. :)

    I have this blog on my RSS feed. I look for a new entry every day. They have been all good. I used this entry for the first time yesterday. It paid for itself already!

  4. Joy Garon on August 28th, 2008 7:41 am

    Jeff -

    Excellent tool! It was a pleasure meeting you this week and I look forward to more of your cool ‘real world’ tips and information.

    Joy

  5. Jeff Cope on August 28th, 2008 1:42 pm

    Thanks Joy. It was a pleasure meeting you too. I hope this means you were able to get it to work on your machine too.

Got something to say?