Can PersistentIDs stored from a 'Part' be used to locate entities in an Assem containing that Part

Hi All,

I am hoping that someone out there has some insight for me on PersistentIDs.

I have an Addin which allows me to create and store 'processing information' which includes PIDs from which I can get required geometry.

1. If I start with a PartDoc everything works as I want it to.  I create the processing info. and select Vertexes and Edges to remember and collect the geometry.

2. If I start with an Assembly, I can create new processing info. and select Vs and Es to remember as above.

However if I start with an assembly which contains a Part that I have already assigned processing info to (like in step 1), then I can't find the PIDs in the assembly.

Since the PID is an array, I was hoping that a portion of the 'PART PID' could be found in the 'ASSEMBLY PID' or maybe gettting the PID a different way by making reference to the BODY or COMPONENT would come up with a match (even a many to one is ok). (It does not need to be a unique as I expect to have the same part loaded multiple times in one assembly and I can tell them apart)

Can this be done ?   Has anyone done it ?

Thanks in advance !!

Al

SolidworksApi macros