几何尺寸与公差论坛

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

【转帖】addmenu and addtoolbar

[复制链接]
发表于 2009-4-13 08:48:43 | 显示全部楼层 |阅读模式
addmenu and addtoolbar
just wondering if most people here are using bitwright solid menu and solidtoolbar or sw addmenu and addtoolbar ?
i've started to write sw addin (vb6) and am not sure what's the best way to do?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
"create solidworks addin from macro in vb6"
i get occasional email from someone trying to get bitwright template to work. let me know if you get an answer out of them.
thx, roland
i got your template. it's much simple comparing to another template i have.
couple questions:
1) the addin is only used for part document and the toolbar is not shown if a drawing document is active. it's good. why the toolbar is still visible if an assembly document is active even though the icons are grey out?
2) how to control the postion of the menu if i decide to make a new menu and want it to appear next the help menu?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
the example in the template is for a program that only applies to parts or parts edited in-context in an assembly. that is why there is no toolbar or menu for drawings.
if you use the addin in an assembly, toolbar will be greyed-out. if a part in assembly is made active for editing in-context, toolbar becomes active.
not sure about how to control position of new menus.
thx for a quick response
i didn't think of editing part in assembly. that answers my question.
for menu postion, if i add a new menu
axmenuid = "esox republic"
lret = axsldworks.addmenu(swdocpart, axmenuid, 9)
then the "esox republic" appears after "help". how to control it to appear before or after "tools" menu?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 22:41 , Processed in 0.037207 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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