几何尺寸与公差论坛------致力于产品几何量公差标准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 run automatically when open a file (http://www.dimcax.com/hust/showthread.php?t=5504)

yang686526 2009-04-13 12:38 PM

【转帖】macro run automatically when open a file
 
macro run automatically when open a file
hi guys,
do you know how to call a macro automatically (without a button) when you open a drawing, another when you open a part and samething for the close events ?
thanks,
steph
you need notifications and events, and to run the macro on starting sw, or run it from an addin. i will be covering the topics in my book, its not really a one line answer. i think there may be examples in the api examples section of this site though.


所有的时间均为北京时间。 现在的时间是 09:51 AM.