几何尺寸与公差论坛

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

【转帖】launching solidworks programmatically

[复制链接]
发表于 2009-4-13 12:28:52 | 显示全部楼层 |阅读模式
launching solidworks programmatically
hi everyone,
i am writting a vb.net application that will launch solidworks.
i use the following lines of code in my program:
swapp = new sldworks.sldworks
swapp.visible = true
everything seems to work fine appart from the fact that when i go to "tools/addins" in solidworks, the "other add-ins" section does not appear (see attached image).
is there a reason for that? do i need to call something else to make that section of the add-ins dialog box visible?
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
try this instead:
swapp = createobject("sldworks.application")
hey luke,
i tried that too but with the same result...
--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
do the "other addins" that are set to autoload actually load when you open it this way and it is simply that the list is not there in the addins dialog, or do they not load either?
out of curiosity, if you look at task manager, what is the user name associated with the sldworks.exe process?
wayne matus
texas engineering systems
luke,
the addins that are set to auto load do not load when i open solidworks from the code.
if i open solidworks again after using the code, the manual way, the addins are picked up and are loaded fine.
wayne, the sldworks.exe process is under my user name, i.e the same as when i run solidworks manually.
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
edited: 09/03/2008 at 04:46 am by stavros antoniou
stavros,
you are correct i have just developed an application that creates a new instance of sw and it does not load the "other add-ins" tab. perhaps sw cannot load 3rd party add-ins when sw is launched from com.
can't really think of much to do here other than if you contact api support and post the answer if you get one, sorry.
will do.
i'll post the reply here if i get one.
--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
i hope to hear about this one, so far my development process has been slower because of this issue.
gl
i am conviced anything can be done in solidworks api.
solidworks 7.0 sp2.2
vb.net
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 14:33 , Processed in 0.033802 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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