I am using ProE 4.0 datecode M040.
We have the following scenario.
Two parts(PRT0005.PRT and PRT0006.PRT)are created and placed in an assembly (ASM0003.ASM).With assembly open, PRT0006.PRT is activated and a hole is created on this part by selecting two of the surfaces of the assembly ASM0003.ASM.
Then open the part and say Info->Reference viewer. The reference viewer window opens and we can see that a reference link between ASM0003.ASM and PRT0006.PRT as shown in the attachment file doc2.doc.Right click on the link and say Info->Reference Info. Inormation window opens showing all the features of PRT0006.PRT and the external features those features refer to. In this case PRT0006.PRT has only one feature called "Hole 1" that has refers to 4 other features.(the attached file "grv_ref_info.inf" shows the content of the information window.)
We are interested in finding specific information from the above information like "Referenced Is In the context of" and "Referenced Solid" for each feature of a file.(In this example given file PRT0006.PRT I should get the information that In the context of assembly ASM0003.ASM. the feature Hole 1 is refering to feature of solid ASM0003.ASM.
Howcan we find this information using Pro/Toolkit functions
This information is needed because when we have to save a file to our server we also need to pickup the files to which the actual file has feature references so that those files will also be saved to server along with the original file.
I have checked functions related to "Object ProReference" but those doesn't seem to solve my purpose.
However I have tried using "Object ProExt" as shown in the attached sample file.I am able to get some of external feature referencesbut not all feature reference.
Could you please go through the sample code and suggest if I am using proper APIs and what is the problem with the code that I am unable to get all the feature references.Please see the function
ProError FnVisitAction( ProFeature* p_feature ,ProError status ,ProAppData app_data ) in the code and give your comments.
(There is no definite behaviour that only some kind feature referencesare returned by the program and some are not. For example "Reference Type: Feature reference , Used as : External geometry reference" .The behavior is that for a given file I may get this kind of reference through program but for a different I file that has this kind of reference the program may not return this reference).