几何尺寸与公差论坛------致力于产品几何量公差标准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, 12:22 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】intall .net addin

intall .net addin
i have this install.bat and it works with vb6 .dll
now i tried it with .net dll and it doesn't work
any ideal why?
thx, chris
regasm.exe myaddin.dll
regedit.exe /s myregister.reg
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
edited: 10/12/2008 at 02:19 am by chris ch
because .net addins need to be registered with regasm.exe
thx, luke
it's what i have in my new install.bat - see the following 2 lines:
regasm.exe myaddin.dll
regedit.exe /s myregister.reg
any by the way, do i have to copy the while bin dir. or just a main dll file to the install dir.
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
edited: 10/13/2008 at 10:26 am by chris ch
just the .dll file unless your library references or uses any other files, which it usually doesn't.
you need to run regasm with the /codebase parameter to in order to create the com entry in the registry, unless you are copying the dll to the gac
thx, luke
plese help me understand this
i created an addin using vb.net and ofcourse i saved the project in the local c drive. during the test and debug, i run the addin manually by using the solidworks open files and select addin(*.dll)
i finished the project and save the addin dll file in the server so everyone can share. i also created the install.bat in the same dir. on the server
i tried to run the install.bat from the server to intall the addin into my solidworks and it works fine
however, i checked the location of the addin using tools>addins... and the addin path still shows in the c-drive?
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
edited: 10/14/2008 at 10:25 am by chris ch
post the install.bat code here
here is th install.bat
regasm.exe testaddin.dll /codebase
regedit.exe /s register.reg
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
just delete the entries manually in the registry hkey_local_machine\software\solidworks\addins\ and delete the folder with your class id. then try again
luke,
i manually deleted all registry in hklm and classid and rerun the install.bat
the addin's path is still in c-drive
i then uninstall and move the dll in c to different location and run the install again and open solidworks and i got the mesg: sw can find the dll path
it's totally weird - never seen some like this with vb6 addin
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
check the comregister and comunregister functions within the dll addin project and post that snippet here
here is the reg file - the unreg is similar with an adding (-) sign
windows registry editor version 5.00
[hkey_local_machine\software\solidworks\addins\{8553e163-c364-4f47-a745-b5a36829edf9}]
@=dword:00000001
"description"="solidworks vb.net 2008 addin "
"title"="views"
[hkey_classes_root\views.viewsclass]
@="views.viewsclass"
[hkey_classes_root\views.viewsclass\clsid]
@="{8553e163-c364-4f47-a745-b5a36829edf9}"
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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】addin users yang686526 SolidWorks二次开发 0 2009-04-13 08:45 AM
【转帖】addin application9.dll0 yang686526 SolidWorks二次开发 0 2009-04-13 08:44 AM
【转帖】add toolbar commad to toolbar in another addin 1 yang686526 SolidWorks二次开发 0 2009-04-13 08:43 AM
【转帖】32bit addin cannot work at 64bit pc yang686526 SolidWorks二次开发 0 2009-04-13 08:36 AM
【转帖】calling a sw addin from exe-file yang686526 SolidWorks二次开发 0 2009-04-12 05:42 PM


所有的时间均为北京时间。 现在的时间是 10:28 AM.


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