几何尺寸与公差论坛

 找回密码
 注册
查看: 686|回复: 0

【转帖】macro not working properly

[复制链接]
发表于 2009-4-12 21:39:43 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 10:35 , Processed in 0.034055 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表