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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Accessing the Reference Entity ID of a Geometric Tolerance from Pro/TOOLKIT

DO_1054494
7-Bedrock

Accessing the Reference Entity ID of a Geometric Tolerance from Pro/TOOLKIT

Good morning.

We use Pro/TOOLKIT to explore and analyze PTC CAD files from a Windows executable program.

To do this, we launch Creo via ProEngineerStart() then we load a file into Creo via ProMdlLoad() and finally we browse the different entities present in the file such as for example geometric tolerances via ProMdlGtolVisit().

My question is: Is it possible to access the reference feature ID of a geometric tolerance from a Pro/TOOLKIT function?

I am attaching a screenshot in which you can see the procedure to follow to view this information in Creo.

Thank you in advance for your help.

Sincerely.

 

ID de l'entité de référence (par exemple 164 dans cet exemple).png

Translated by the Community Moderation using Google Translate
-----------------------------------------------------------------------------------------------

Bonjour.

Nous utilisons Pro/TOOLKIT pour explorer et analyser des fichier CAO PTC à partir d'un programme exécutable Windows.

Pour ce faire, nous lançons Creo via ProEngineerStart() puis nous chargeons un fichier dans Creo via ProMdlLoad() et enfin nous parcourons les différentes entités présentes dans le fichier comme par exemple les tolérances géométriques via ProMdlGtolVisit().

Ma question est la suivante : est-il possible d'accéder à l'ID de l'entité de référence d'une tolérance géométrique à partir d'une fonction Pro/TOOLKIT ?

Je joins une copie d'écran dans laquelle on peut voir la marche à suivre pour, dans Creo, visualiser cette information.

Merci d'avance pour votre aide.

Cordialement.

1 ACCEPTED SOLUTION

Accepted Solutions
RPN
17-Peridot
17-Peridot
(To:DO_1054494)

extern ProError ProAnnotationelemFeatureGet (ProAnnotationElem       *element,
					     ProFeature                 *feat);
/*
  Purpose:  Gets the feature that owns an annotation element.

  Licensing Requirement:
          TOOLKIT for 3D Drawings

  Input Arguments:
    element       - The annotation element.
  
  Output Arguments:
    feat          - The feature that owns the element.
    
  Return Values:
    PRO_TK_NO_ERROR   - The function succeeded.
    PRO_TK_BAD_INPUTS - One or more inputs was invalid.
*/

 

Maybe that helps. Take care of your Lic Key 🙂

View solution in original post

2 REPLIES 2
RPN
17-Peridot
17-Peridot
(To:DO_1054494)

extern ProError ProAnnotationelemFeatureGet (ProAnnotationElem       *element,
					     ProFeature                 *feat);
/*
  Purpose:  Gets the feature that owns an annotation element.

  Licensing Requirement:
          TOOLKIT for 3D Drawings

  Input Arguments:
    element       - The annotation element.
  
  Output Arguments:
    feat          - The feature that owns the element.
    
  Return Values:
    PRO_TK_NO_ERROR   - The function succeeded.
    PRO_TK_BAD_INPUTS - One or more inputs was invalid.
*/

 

Maybe that helps. Take care of your Lic Key 🙂

DO_1054494
7-Bedrock
(To:RPN)

Bonjour.
Merci pour votre réponse qui répond à ma problématique.

Bonne journée.

Cordialement.

 

Top Tags