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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

ZZ_7523178
4-Participant

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

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 2
ZZ_7523178
4-Participant
(To:ZZ_7523178)

My Creo version is Creo 4.0 M050

FV
17-Peridot
17-Peridot
(To:ZZ_7523178)

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

Announcements


Top Tags