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

yang686526 2009-04-12 09:39 PM

【转帖】macro not working properly
 
macro not working properly
i have made a macro for creating a rectangular box. the form comes up and the user has to input the required height, width & depth. up to this is ok. but when i click apply, a cube gets generated with all dimensions value equaling the height value. can some check what is the mistake in the code/macro.
tia.
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
answer hi,
make these edits.
dblwidth = cdbl(txtwidth.text * 0.0254)
dbldepth = cdbl(txtdepth.text * 0.0254)
scott
thanks scott. i forgot to change the codes after i did the copy and paste of first line.
deepak gupta
sw2007 sp5.0
sw2009 sp2.1


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