查看单个帖子
旧 2009-04-13, 11:45 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)