几何尺寸与公差论坛

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

【转帖】addin application9.dll0

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

本版积分规则

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

GMT+8, 2024-12-23 22:27 , Processed in 0.035865 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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