查看单个帖子
旧 2009-04-12, 10:01 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】pdmwe api question get configuration from iedmreference5

pdmwe api question: get configuration from iedmreference5
pdmwe api question
we have a sldasm file (a.sldasm) who references another one (b.sldasm) 3 times (so the reference count is 3).
(each of those 3 times occurs in a different configuration of the b.sldasm file.
our pourpose is building a treeview in an external application representing exactly the structure of the a.sldasm file and its children.
this means that the a.sldasm file node is supposed to have 3 child nodes (b.sldasm) each one representing one of the given configurations.
we are using the iedmreference5 or 6 interface and by a recursive function we reached our goal althought we had to iterate 3 times in order to show the 3 children nodes because despite of the child (b.sldasm) occurs three times, the interface of course see it only once.
our problem is that we can not access the configuration of the three occurences, we'would need a sort of collections of refs (3 as the refcount property exposes) in order to retrieve for each one of them the configuration used.
as long as we tried we never found an object who could help us and we are near to
build an object by ourselves that querying the vault_sql_db (xrefs, xrefsconfiguration... tables) will be able to retrieve those infos.
does another easier method exist to get it?
thanks.
e.c.
use the bom interfaces of epdm 2009.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)