几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】adding a control button to a macro (http://www.dimcax.com/hust/showthread.php?t=5045)

yang686526 2009-04-13 08:47 AM

【转帖】adding a control button to a macro
 
adding a control button to a macro
hi,
i have created a simple marco to save an open drawing to a pdf in a certain directory. it works well. i would now like to have a button, preferably on my toolbar, to run this macro.
is there a simple way to do this? for example, in excel you can just use the control toolbox to add a button an assign the macro to the click event.
any help would be greatly appreciated. again, i am looking to run a macro in a drawing with one click.
thanks,
jon
yep, just like that. go to view, toolbars, customize and look in the macro toolbar section, there is a macro button that you can drag onto any toolbar and configure it.
answer thanks,
found it under customize, commands, macro. i also realized that there is a pretty good help file on it in the api help.
quick


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