几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 08:44 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】addin application9.dll0

addin application(.dll)
hi,
i am working on sw customization in which,i had created one .dll addin.i am adding that addin into sw session.the application is also running fine,but once the application done,i am not able to reuse it in same sw session.i need to restart a sw session & again add the addin.
what do you mean by a sw session and the sw application?
are you saying you start a session in another way than just opening sw itself? i am probably missing something obvious here first day back at work for over a week
by sw(solidworks) session i mean that after statrting sw on the system, i can run my addin application very well but only once,next if i want to use that menu again in the sw,that is not working at all.if i am closing sw & opening it again then only i am able to use that addin but only once,this is not a good practise.
any help, suggestions appreciable................
what is your addin meant to do?
if you have created some functionality you can assign it to a menu entry and/or a toolbar entry and re-use it as many times as required in a single sw session.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
my addin has a functionality of creating assembly.i am starting sw session, using tools->addin i am adding that addin to current sw session,now i got the menubar created i am clicking on that menu dialoge box for user input is coming after entering the inputs addin functions fine creates asembly for me,but after one time use i am not able to use it again,or else i need to close sw & open it again..i want to use same addin in same sw session multiple times......
waiting for u r reply....
what coding are you using to hook your application into a sw session as oppose a com instance?
i had written all the coding using vb.net addin template,i used windows form to get user input...
waiting........
i meant the actual coding, your code to hook to solidworks, for example:
swapp = new sldworks.sldworks
here are code lines which i am using
dim iswapp as sldworks.sldworks
dim useraddin as swaddin
dim swmodel as modeldoc2
swmodel = iswapp.opendoc6("d:\" & partname & ".sldprt", 1, 0, "", loaderr1, loadwar1)
like that my code flow is going.
after debugging the .net automatically starting sw session.
i am adding the addin & then my application is opening specified part & performing remaining functionality.
after performing one time i am not able to use same application again in same sw session,even if the sw session started from outside.
waiting.....
it is not clear what you are doing here;
"i am working on sw customization in which,i had created one .dll addin.i am adding that addin into sw session"
how are you adding that addin to the sw session? adding it using another .net application you are producing?
is your application you are discussing a sw addin or a standalone app that launches your add-in? are you on about just one program here?
also, the code you provided has no initialisation so i presume it is from the dll addin function where the variable iswapp is actually passed in?
thanks luke for so quick reply......
acually i am using vb.net addin template which is having sample code for adding
menu(createcommandgroup()).using this menubar i am opening my user form & performing functionality.
the application itself is able to load addin ,i just need to selct it from other addin list after that i am to work on menubar which my addin has created.i am discussing about only one code here.as u mentioned i am working in same way as u.it is a swaddin only...
thanks again....
waiting for reply....
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 08:19 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多