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
My Creo version is Creo 4.0 M050
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