VB problems when Upgrading SolidWorks

How often do people encounter problems when they upgrade SolidWorks?

I am trying to decide if I should recommend we purchase DriveWorks or TactonWorks to avoid future issues with maintaining VB code.

SolidworksApi macros
Answers 9
JC
JC 2010-03-31 Best Answer

Have you Had Problems upgrading Solidworks

from what seen Solidworks API is forward compatible they just add new function

they obsolete a function but it will still work

  A
ModelDoc2.AddConfiguration has three

AddConfiguration,AddConfiguration2,AddConfiguration3

the first two have been obsolete and superseded by AddConfiguration3

but it will still work

if you use an add-in insted of an macro there might be 1% chance that the code will not work or if you want/need to use an new function that was not in the older version of solidworks will need need to fix your code

I have complex add-in that will travese a part/ASM and write it to a sql servr to create a cost EST BOM  i using the 2008 dll files but it works fine in the 2010 version that we have to test before switching with out update  dll or the code

A quick look at the  DriveWorks or TactonWorks I don't see where it manage code but is just an add-in  that you don't have full control over

AP
AP 2010-04-07

Thanks Jacob.

I'm new to Solidworks API and I want see if there might be issues taking this path.

SF
SF 2010-04-08

Neither DW or TW are for "maintaining VB code" as such, the whole idea is design automation, so if you are after maintaining general functioning VB code they aren't the option.

I better bet would be to move to a .Net add-in (take a look at my tutorials) or just stand alone apps so you have the power of .Net instead of VBA.

If you are actually after automating your designs, DW all the way, avoid nasty TW!!

If you want to try DW for free download it here http://www.driveworkssolo.com

JC
JC 2010-04-13

my company just update to 2010 the my add-in ran

but for me to run my add-in in debug mode or the build it I had to replace the reference from 2008 to 2010 because 2008 was uninstalled.

AP
AP 2010-04-22

Hi Luke, I need to decide the path to take for design automation.  API (VB, NET, etc), or DriveWorks, or TactonWork are my choices.  I heard (thru the grapevine) that automating designs with API is problematic when upgrading Solidworks to new releases.   The code written in one version for software does not work in a newer version of software.  I understand that some maintenance will be required, but I want to know how much?

Also, You mentioned, " avoid nasty TW!! ".  What have you heard or seen?  I would be very interested if you have any links to poor reviews on this software.  TW is at the top of the list. (Not my choice)

SF
SF 2010-04-22

We have been automating our systems since SW2003 and have only had minor issues when upgrading to the next level.  I agree that having a stand alone .Net app is the way to go.  I find it easier to control and maintain.

SF
SF 2010-04-24

Regardless of maintenance considerations, I think the nature of the automation requirements is a big factor with regard to the decision of whether to go the custom route or to use a tool like DW.

SF
SF 2010-04-24

VB macro code is very stable if it is used in the same system configuration where it was written.  Code written on XP 32-bit platform will work well through any number of Solidworks upgrades on that or other XP 32-bit systems.  The problems come in with unpredictable behavior introduced between OS's.  I've seen many problems with trying to run VB macros designed on XP 32-bit systems on Win7 or Vista, particularly when moving up from 32-bit to 64-bit.

Matt Lorono

SolidWorks Legion

Follow me on Twitter April 2010 contest: fcsuper

SF
SF 2010-04-26

Automating design through API is the only way automation of SolidWorks can take place, both DW and TW have to use the SW API to do so, so not sure I understand your point there.

As for stability/maintenance etc... that is dependant on the software written not the type or means by which it is. For example I have several products used by large companies that I wrote 4 years ago that worked on Windows XP 32bit and SW2007, and without any changes what so ever they still work to this day on SW2010 Win7 64bit. Stability and maintenance only have to occur if the software is written in a way that either requires it by design, or by fault.

DW provides migration and upscaling tools are part of all of its products so upscaling from one version to the next is seamless.

As for TW, it is from personal experience I have used both products extensively and believe me when I say there are some things that TW simply cannot do by the way it is designed it has many limitations. Of course for every day use it may not come up, and some users may never hit the limitations, but I do. It's user preference what package they choose I was just giving my blunt opinion