Auto Version Increment

August 30th, 2012


Today’s SolidWorks Enterprise PDM post comes from a cool little API idea Lou Gallo dropped on me:

poInfo.mlAddInVersion = Now.ToString("yyyyMMdd")

Just like the fight club, if I have to explain it, you wouldn’t understand.

Jeff Sweeney

CSWE Engineering Data Specialist 3DVision Technologies

Tags: ,

Loading Facebook Comments ...

3 Responses to “Auto Version Increment”

  1. fcsuper says:

    Let me guess, Y=year? :)

  2. Jeff Sweeney says:

    Close…lowercase ‘y’ stands for one digit of the year. (The format command is very case sensitive.) http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

    …though you’re not supposed to talk about the fight club.

  3. Lou Gallo says:

    HaHa.. Just trying to reduce the number of things I need to update on each build!

Leave a Reply

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