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

yang686526 2009-04-13 11:45 AM

【转帖】help with macro
 
help with macro
hi i have tried to run the following macro but it always promt the dimension quantities and i have to make an enter o esc to keep running the macro.
i tried to put part.clearselection2 true and part.setpickmode after the lines which creates the dimension but it doesn't work.
thank you in advance
daniel
add "swapp.setuserpreferencetoggle swinputdimvaloncreate, false" at the beginning of your code - for example right after "set swapp = application.sldworks".
it will set the "input dimension value" option (options/system options/general) to false.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
quick


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