Skip to main content
12-Amethyst
July 18, 2024
Question

How to obtain surfaces ID on PRO_ANNOT_REF_SRF_COLLECTION type references.

  • July 18, 2024
  • 1 reply
  • 723 views

Hello,

The following PTC article details how to obtain references from Annotation elements,

https://www.ptc.com/en/support/article/CS289474


However this only is viable for annotation references of the type: PRO_ANNOT_REF_SINGLE:

 /*---------------------------------------------------------------------*\
 get the references for the AE
 \*---------------------------------------------------------------------*/
 status = ProAnnotationelemReferencesCollect(&elem, PRO_ANNOTATION_REF_ALL, PRO_ANNOT_REF_FROM_ALL, &ann_ref);

 int num_refs;
 status = ProArraySizeGet(ann_ref,&num_refs);

 for (int i = 0;i < num_refs;i++)//all references of selected item
 {
 if (ann_ref[i].type != PRO_ANNOT_REF_SINGLE)
 continue;
 //proceed this loop only if the single reference is NOT a PRO_ANNOT_REF_CRV_COLLECTION or PRO_ANNOT_REF_SRF_COLLECTION


How could the surface ID's be obtained for type PRO_ANNOT_REF_SRF_COLLECTION (or even PRO_ANNOT_REF_CRV_COLLECTION )?


Thank you.

1 reply

Ben_C12-AmethystAuthor
12-Amethyst
July 19, 2024

Edit: Link should point to article https://www.ptc.com/en/support/article/CS298411