|
backwards compatible macros
all, is there a way to create a macro that will work on older versions of solidworks? i have sw 2009, and clients of mine who want some custom macros written for them will still be using sw 2008 or maybe earlier. is there a way to get the older reference libraries? or would you propose a different approach?
to defeat the wheat, go against the grain.
tom, i guess you are not interested in installing sw2008 just to have the old libraries available? i have both sw2008 and sw2009 so i can send the needed library files to you. i am not sure if you need to register them or if you can just add them manually by browsing after them in the references list.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
i'm guessing you need the api sdk for the different versions? you can still get 07 & 08 from the solidworks download site, just goto download whatever version you want, click the 'click here if your having problems link' and you can find the api there..
sw2009 sp3.0
pentium d 840-3.2 ghz
4gb ddr2 667
ati firegl v5600 - driver ver. 8.440.0.0
winxp pro 32bit
an understanding that without any understanding, we would all be misunderstood..
also, how complex are these macros? if you copy/paste the text of a macro into a new macro on their machine, the references will automatically update.
i'll get you eh steve, if it's the last thing i dooooo!
jorn, thanks for the offer. that just makes me go "duh": i can get the older libraries myself from the older versions of sw i have. i don't think you have to register them, just browse to them and make sure they are selected?? that will be a learning curve. :-0
tom #2 (joking), that's a good point too. are the tlb files of the older versions located in the sdk? that would make it easier to add library references from older versions.
josh, that is a nice tip! the macros aren't exceedingly complex, so that is good to know.
i'm assuming that as long as i use 2008 methodology that it would work for both; but if i use 2009 that it would only work for 2009+.
thanks for your input!
to defeat the wheat, go against the grain.
edited: 03/30/2009 at 04:04 pm by tom fosler
originally posted by: tom fosler
i don't think you have to register them, just browse to them and make sure they are selected?? that will be a learning curve. :-0
you're welcome. i guess you are right - i believe you need to register them only if you don't want to browse for them everytime you make a new macro for sw2008.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
no need for older libraries what so ever if you use a compiled language like c++, c#, vb.net. always use the latest libraries (2009 in this case) and create macros as you do, making sure you only use methods and calls that are already existing in the old libraries, and the macros will work fine.
if you are using vba then the references are not included by default when you send your macros, so you have 3 options; re-reference them to the old libraries for the client firsthand, provide them with information on how to do that themselves, or send them the latest libraries with your macro for them to install. |
|