几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】cosmosworks api (http://www.dimcax.com/hust/showthread.php?t=5203)

yang686526 2009-04-13 09:57 AM

【转帖】cosmosworks api
 
cosmosworks api
when i issue the following command:
set cwobject = swapp.getaddinobject("cosmosworks.cosmosworks")
cwobject remains set to nothing.
i am trying to use the getdisplacementcomponentforallstepsatnode method to automatically get the distance between 2 predefined nodes (on different parts within an assembly). the 2 nodes are very close together and they are very hard to select with list results.
i am using sw 2008 sp 4.0, with cosmosworks advanced professional
any help would be greatly appreciated.
thanks
chris
chris
silly question but is the cosmosworks addin actually loaded before you call this?
yes. i thought maybe the addin name was wrong.
why is it "cosmosworks.cosmosworks"?
the dll is cosworks.dll, not that that would have any bearin g on what the addin is referred to.
chris


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