Skip to main content
4-Participant
April 28, 2023
Question

How to change or set the Text parameter from 2D sketch in 3D model by protoolkit

  • April 28, 2023
  • 2 replies
  • 1098 views

In Creo Parametric, we know that there are 2 kinds of text in 2D sketch, one is to add text manually, and another one is to add it by parameter of the related model, and I want to know if we have some function or interface in pro/toolkit to access the text to change the parameter relations as the picture showed. Currently I couldn't find any similar function. I need the help....

Thanks a lot! 
Bob

 

2 replies

4-Participant
April 28, 2023

My Creo version is Creo 4.0 M050

May 1, 2023
Pro2dTextdef

 structure has 'string' member with the text in question.

If this text would be a symbolic one - you would see something like L"{0:&PARAM_NAME}".

 

take a look at the function

ProError ProUtilSectionInfoGet(FILE *fp,ProSection section)

in UtilSelect.c protoolkit example file. The function demonstrates how to use ProSectionEntityGet() to list PRO_2D_TEXT.

 

HIH