几何尺寸与公差论坛------致力于产品几何量公差标准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-13, 12:42 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】macro troubleshooting

macro troubleshooting
i downloaded a renaming macro (thanks, fcsuper!), that won't work on my machine. i get an error message telling me that i have a compile error, can't find project or library. unfortunately, i'm a complete moron when it comes to vb...if anyone can shed some light on this, it would be greatly appreciated.
jeff mirisola, cswp, certified driveworks ae
i guess it would help to provide the file...
jeff mirisola, cswp, certified driveworks ae
i'm not sure about the "project" aspect, but the libraries can be set when editing the macro via tools > references. just select the libraries which match your sw version.

most likely you have a reference issue caused by the macro being created in a different version from the one you are running. in the vba editor, go to tools->references. in the list there will probably be a few checked entries that say "missing:______". un-check those and find the corresponding entries in the list for your current version of sw and check those boxes.
-handleman, cswp (the new, easy test)
handleman,
i found one instance of "missing:" but i can't find any corresponding entries. if i deselect the missing one and rerun the macro, i get another error message that, to me, implies that the user form is missing.
also, if i shut down sw and restart, when i initially run the macro i get an microsoft forms error stating: 'could not load object because it is not available on this machine.'
thoughts?
jeff mirisola, cswp, certified driveworks ae
jmirisola,
rename.swp was built using a library reference to something called "microsoft masked edit control 6.0". this or an older version does not appear in my reference library either. - maybe it is from the vista operating system. i'm still using xp. how about you?
just my guess .
tobin sparks
i'm still using xp as well. i've looked around for the msmask32.ocx file and it's not on my system, nor have i been able to find a reputable site to download it from.
jeff mirisola, cswp, certified driveworks ae
tobin has hit it on the head. no comments as to whether it's legal or not, but
ok, got it. too bad the damn macro still won't work. i still get a compile error: can't find project or library.
jeff mirisola, cswp, certified driveworks ae
a lot of those ms files are all over the net. if this macro is having this kind of issue though, i'll remove it (its an example from the sw website anyway).
matt lorono
cad engineer/ecn analyst
silicon valley, ca
i'm getting closer, but still no dice. i don't know that there's anything too wrong with the macro, matt. i don't know enough about vb to determine that.
jeff mirisola, cswp, certified driveworks ae
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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



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


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