几何尺寸与公差论坛------致力于产品几何量公差标准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 to set dimensions to this configuration (http://www.dimcax.com/hust/showthread.php?t=5512)

yang686526 2009-04-13 12:41 PM

【转帖】macro to set dimensions to this configuration
 
macro to set dimensions to this configuration.
is there a macro available that will change all sketch dimensions and plane location dimensions to this configuration only? i'm constantly changing a dimension and forgeting to set the dimension to this configuration only.
thank you.
valve guy
sw 2008 sp4.0
dell precision pws670
3.2 ghz, 1gb ram
you need to get the selected object being a displaydimension, then use dispdim.getdimension to get the dimension object, then use
dim.setsystemvalue3 yourvaluehere, swthisconfiguration, nothing
ps my book will show you exactly how to do this i have just written about this.

edited: 04/22/2008 at 11:35 am by luke malpass
quick


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