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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Retrieving surfaces from PROG_LOG_SRF entity

DO_1054494
7-Bedrock

Retrieving surfaces from PROG_LOG_SRF entity

I am using Creo Parametric - Release 5.0 (connected) 5.0 5.0.2.0

Hello.

I wrote a program to run Creo 5.0.2.0, open a CAD file in Creo 5.0.2.0 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.

6 REPLIES 6
rghadge
15-Moonstone
(To:DO_1054494)

@DO_1054494,

 

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().

Hello.

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 ?

 

rghadge
15-Moonstone
(To:DO_1054494)

@DO_1054494,

 

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).

VladimirN
24-Ruby II
(To:rghadge)

Thank you everybody.

I have opened a PTC technical support case for this issue.

Best regards.

 

You're welcome.

Top Tags