例如:关系AsRevRev是GenAssm与Part之间的BOM引用关系,它有一个List属性为“ReferenceDesignators”,那么在得到AsRevRev对象之后如何获取ReferenceDesignators属性的值呢?
使用objListGetList:
ObjectPtr relItem = NULL;
SetPtr rdList = NULL;
int rdSize = 0;
// todo: get relItem here
// ...
// and now, relItem is available
// now to get "ReferenceDesignators"
dstat = objListGetList(relItem, "ReferenceDesignators", &rdList);
// check dstat
rdSize = setSize(rdList);
for(i=0; i<rdSize; i++)
{
string str = (string)setGet(rdList, i);
}