几何尺寸与公差论坛

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

【转帖】get deep component from assembly

[复制链接]
发表于 2009-4-13 11:00:59 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 18:26 , Processed in 0.035206 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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