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 theB.sldasm file.
Our pourpose is building a treeview in an external applicationrepresenting exactly the structure of the A.sldasm file and itschildren.
This means that the A.sldasm file node is supposed to have 3 childnodes (B.sldasm) each one representing one of the givenconfigurations.
We are using the iedmReference5 or 6 interface and by a recursivefunction we reached our goal althought we had to iterate 3 times inorder to show the 3 children nodes because despite of the child(B.sldasm) occurs three times, the interface of course see it onlyonce.
Our problem is that we can not access the configuration of thethree occurences, we'would need a sort of collections of refs (3 asthe refcount property exposes) in order to retrieve for each one ofthem the configuration used.
As long as we tried we never found an object who could help us andwe 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.
SolidworksApi macros
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 theB.sldasm file.
Our pourpose is building a treeview in an external applicationrepresenting exactly the structure of the A.sldasm file and itschildren.
This means that the A.sldasm file node is supposed to have 3 childnodes (B.sldasm) each one representing one of the givenconfigurations.
We are using the iedmReference5 or 6 interface and by a recursivefunction we reached our goal althought we had to iterate 3 times inorder to show the 3 children nodes because despite of the child(B.sldasm) occurs three times, the interface of course see it onlyonce.
Our problem is that we can not access the configuration of thethree occurences, we'would need a sort of collections of refs (3 asthe refcount property exposes) in order to retrieve for each one ofthem the configuration used.
As long as we tried we never found an object who could help us andwe 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.
SolidworksApi macros