几何尺寸与公差论坛

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

【转帖】solidworks addins vb.net applications

[复制链接]
发表于 2009-4-13 14:28:14 | 显示全部楼层 |阅读模式
solidworks addins & vb.net applications
i have been able to create a vb.net app to add macros to a solidworks menu as an addin, but i had to run the app with .net running to install it is there a way to create a .exe file in vb.net to do this, so you don't have to have the .net framework on the machine you are running solidworks on
no. the .net framework contains all the library files for the language that your exe gets compiled into.
.net 2.0 comes installed on all systems since xp sp2
thanks for your reply - what is best way to install a solidworks addin on a machine that has solidworks and xp . do you just need to register the dll created by .net that is used for the addin ?
unfortunately it is not simple to create a seamless installer. to do it manually you just run regasm.exe (c:\windows\microsoft.net\framework\v2.0.50727) to register your dll which effectively is the stage that is run automatically when you compile your project in vs.net
i have a j script that finds the regasm.exe and registers the addin but at this point i've only been able to distribute a .bat file which runs the j script which the user must manually run after the install. i've tried to get the windows installer project to run the j script or the .bat file during the install using a custom action but i can't seem to make that work. if anyone knows how to use custom actions i'd be happy to share my scripts.
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 19:06 , Processed in 0.035549 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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