cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

How to obtain surfaces ID on PRO_ANNOT_REF_SRF_COLLECTION type references.

Ben_C
7-Bedrock

How to obtain surfaces ID on PRO_ANNOT_REF_SRF_COLLECTION type references.

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 1
Ben_C
7-Bedrock
(To:Ben_C)

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

Announcements


Top Tags