How to change or set the Text parameter from 2D sketch in 3D model by protoolkit
Apr 28, 2023
07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 28, 2023
07:23 AM
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
Labels:
- Labels:
-
ProToolkit
2 REPLIES 2
Apr 28, 2023
08:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 28, 2023
08:58 AM
My Creo version is Creo 4.0 M050
May 01, 2023
02:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 01, 2023
02:21 PM
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
