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

yang686526 2009-04-12 10:11 PM

【转帖】remove tolerances from drawing
 
remove tolerances from drawing
is it possible to remove all tolerances from a drawing by using a macro?
feroz mahomed
windows xp professional sp2
sworks 2009 sp2
nvidia quadro fx1500
yes editdimensionproperties2 will do that. select all the dimensions and run these codes.
******
sub main()
set swapp = application.sldworks
set swmodel = swapp.activedoc
swmodel.editdimensionproperties2 0, 0, 0, "", "", 1, 9, 2, 1, 11, 11, "", "", 1, "", "", 0
swmodel.clearselection2 true
swmodel.viewzoomtofit2
end sub
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
answer deepak,
thanks. that works fine.
feroz mahomed
windows xp professional sp2
sworks 2009 sp2
nvidia quadro fx1500
quick


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