几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】connecting to remote solidworks (http://www.dimcax.com/hust/showthread.php?t=5188)

yang686526 2009-04-13 09:50 AM

【转帖】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


所有的时间均为北京时间。 现在的时间是 06:30 PM.