查看单个帖子
旧 2009-04-13, 09:50 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】connecting to remote solidworks

connecting to remote solidworks
hi
i have 2 pc's one with a pdm tool installed on it and another with solidworks installed. i am wondering if it is possibile to connect to the remote pc with solidworks using a remote com object.
i do not have experience in such a topic, does anybody have tried somthing similar? is it possibile in general?
thank you
neri alamanni
yes it should be possible. you would have to setup the correct access and launch permissions for the sw com object on the remote machine first using dcomcnfg.msc, and then use the following code for example to launch it from the other machine:
type t = type.gettypefromprogid("sldworks.application", "remotemachinename");
object o= activator.createinstance(t);
its name may show as "solidworks 97plus application" in the dcom config tool, not solidworks 2008 or 2009, don't ask why.

edited: 11/11/2008 at 04:18 am by luke malpass
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)