How to ease the pain of writing a PDMWorks Enterprise addin

December 19th, 2007 by

Writing and debugging VB .NET addins for PDMWorks Enterprise is not a fun task. First you cannot step through your code and watch your variables update so finding the problem is a lot like finding a needle in a haystack… additionally, between the builds you need to constantly unload the addin, start/stop the explorer.exe process, compile the .dll, then reload the addin.

-Too much work for me. I typically write a majority of the code as a “Windows Application” then after I get that working I’ll convert the application into a “Class Library” (in the project’s properties screen). Granted there is a little cleanup to this step but I think that pales in comparison to writing the code as a class library from the beginning.

Jeff Sweeney

CSWE Engineering Data Specialist 3DVision Technologies

4 Responses to “How to ease the pain of writing a PDMWorks Enterprise addin”

  1. Joy Garon says:

    Jeff -

    Try setting up your application to run wordpad or notepad. This would allow you to run it in debug mode.
    If you are at SolidWorks World, look me up and I’ll have someone show it to us….

    Joy

  2. Jeff Sweeney says:

    I should have been more specific. I was referring to the Express version of VB .Net. You can step through your add-in code if you buy .NET from Microsoft.

  3. C Graff says:

    “I should have been more specific. I was referring to the Express version of VB .Net. You can step through your add-in code if you buy .NET from Microsoft.”

    Hi Jeff,

    I was told that you could not use a debugger to step through the DLL added into PDMWorks. Your statement above sounds like good news. Could you elaborate a little on the version of PDMWorks and Visual Studio I would need to allow stepping through the code. Also I assume (or hope) this would allow breaking at and then stepping over function calls to the SolidWorks API.

    Also if there are online resources, documents, or books that you could point me to with regard to this I would be very thankful.

    Thanks

  4. Jeff Sweeney says:

    I only have the Express version so I cannot tell you exactly how it is done. At SolidWorks World I saw this amazing feat accomplished with both the Standard and Professional Editions of Visual Studio. (It was a setting they set somewhere in the debug section.) The presenters were able to create break points, watch variables and step through their code!

Leave a Reply


+ one = eight

Follow
Get every new post delivered to your inbox
Join other followers
Powered By WPFruits.com
Bear