I am using Creo Parametric - Release 5.0 (connected) 5.0 22.214.171.124
I wrote a program to run Creo 126.96.36.199, open a CAD file in Creo 188.8.131.52 and explore this CAD file with Pro/TOOLKIT (C++) functions.
In my program, when I read a geometric tolerance I use the following functions to retrieve the geometric entities on which the tolerance applies:
ProAnnotationElementGet(), ProAnnotationelemReferencesCollect(), ProReferenceTypeGet(), ProReferenceToSelection()
If the type of the selection obtained by ProReferenceToSelection() is a surface or an edge, there is no problem.
But if the type is PRO_LOG_SRF, then I have no solution to retrieve the corresponding surfaces.
So, my question is : when I have a PROG_LOG_SRF entity, how can I retrieve the associated surfaces ?
Thank you for your help.
As far as I know, the ProGeomitem of PRO_TYPE = PRO_LOG_SRF is not yet open to Toolkit users to access its geometry. If you use API ProSelectionModelitemGet() to get ProGeomitem of obtained ProSelection. Further, you may find unable to process these geomItems further as API ProGeomitemToSurface() may fail on these geomItems. Existing APIs like ProGeomitemdataGet() and ProGeomitemToSurface() does not seem to support such items. I think this item may not be of any significance for toolkit users in terms of Geometry. You can confirm whether such geomitem is inactive or not using API ProGeomitemIsInactive().
Thank you very much for your answer.
So, if I understand well, there is no solution to get, with Pro/TOOLKIT, the surfaces "under" a PRO_LOG_SRF entity.
In my case, this PRO_LOG_SRF is active because it is pointed by a chamfer dimension.
Do I need to open a case in PTC support ?
Sure, in that case it would be better if you open up a PTC Technical Support case and share your issue in detail (attach model if required).