查看单个帖子
旧 2009-04-13, 11:00 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)