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

yang686526 2009-04-13 11:00 AM

【转帖】get deep component from assembly
 
get deep component from assembly
hi!
i have assembly a (a.sldasm).
assembly a contain a component: b (b.sldasm).
assembly b contain a component c (c.sldasm).
i use the documentextension::selectbyid function tha get the b component from a.
the name parameter of this function: "b-1@a" it is work, i get the b component.
if i like th get the c component (from a!) i use the selectbyid function by this parameter: "c-1@b-1@a" but it not working. ( result == variant_ false) :-(
i need the get th c component from a. i how access the c component? what is the parameter-naming convention in the solidworks?
not a way me, that open b and get the a component. i need the x,y,z coord of c component (distance from origin) from a origin but not the b origin!
i use c++ (vc++ 6.0) with com.
regards:
zszs.
hi szost,
have a look here
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
thanks!! working... :-)
regards:
zszs.
quick


所有的时间均为北京时间。 现在的时间是 09:23 AM.