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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】macro wont work in 2008 (http://www.dimcax.com/hust/showthread.php?t=5515)

yang686526 2009-04-13 12:43 PM

【转帖】macro wont work in 2008
 
macro won't work in 2008
i just upgraded to swx2008 office pro sp-3.1. when i try to run one particular macro i get a "object doesn't support this property or method." error
i checked my vb references and found that the solidworks 2007 commands type library is no longer loaded. when i try to load the reference i get an "error in loading dll." error.
did something change in 2008 to make the 2007 commands type library no longer valid?
vince
reswug leader
rohnert park, ca
vincent,
nothing made it invalid... you just upgraded solidworks. to get your macro working, delete the missing reference, and add a reference to the solidworks 2008 library instead of the 2007 one. that should get it working.
kevin bennett
kevinsbennett@navitech.us
like kevin said; to do that just go to the tools->references... menu and remove all solidworks items, click ok, go back in, then re-add them.


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