几何尺寸与公差论坛

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

【转帖】repeat last command macro

[复制链接]
发表于 2009-4-13 13:55:52 | 显示全部楼层 |阅读模式
"repeat last command" macro
let me start by saying i have plenty of experience with excel vba but none with solidworks vba.
i am looking to add a button to the 'shortcut' toolbar that will repeat the last command. i currently have 'r' as my keyboard shortcut, but want to be able to click a button instead.
cheers.
the quick'n'dirty way would be sendkeys("r")
-handleman, cswp (the new, easy test)
hitting enter repeats last command as well.
if you wish to change the key that repeats the last command, goto tools pulldown>customize...>keyboard tab  then in the search for: field search for "repeat"
matt lorono
cad engineer/ecn analyst
silicon valley, ca
ok, i'm guilty of not reading the question fully and responding to the last answer more so than to the question.  sorry about that.  handleman's solution is the easiest.
matt lorono
cad engineer/ecn analyst
silicon valley, ca
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 05:14 , Processed in 0.034736 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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