几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-12, 08:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】backwards compatible macros

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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】solidworks macros capabilities yang686526 SolidWorks二次开发 0 2009-04-12 07:40 PM
【转帖】how to use and setup macros yang686526 SolidWorks二次开发 0 2009-04-12 06:40 PM


所有的时间均为北京时间。 现在的时间是 01:45 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多