Skip to main content
10-Marble
September 15, 2022
Solved

Mark Deprecated Script Marked a Replacement as NONE

  • September 15, 2022
  • 1 reply
  • 1440 views

When I ran the mark deprecated script from Creo 9 on my Creo 5 toolkit files, one of the suggestions I got was "Replace ProGtolDataGet with NONE." Is NONE a function? or is it telling me that it has no suggestion to replace this function with?

Best answer by FabianWolf

There is no successor function as the workflow changed. While it was previously necessary to call ProGtolDataGet and then call other ProGtoldata*() functions to extract information from that Gtoldata, you can now use new functions to directly manipulate the ProGtol item.

 

Example for getting the type of a ProGtol:

 

ProGtol my_gtol; // lets pretend it's pointing to a valid item 
ProGtoltype type; // that's what we want to get

 

Old workflow

ProGtoldata data;
ProGtolDataGet(&my_gtol, &data);
ProGtoldataTypeGet(data, &type);
ProGtoldataFree(&data);

 

New workflow

ProGtolTypeGet(&my_gtol, &type);

 

So the replacement of ProGtolDataGet depends on what you're actually doing with the gtol. Use the new functions to achieve the same goal as before.

1 reply

14-Alexandrite
September 16, 2022

There is no successor function as the workflow changed. While it was previously necessary to call ProGtolDataGet and then call other ProGtoldata*() functions to extract information from that Gtoldata, you can now use new functions to directly manipulate the ProGtol item.

 

Example for getting the type of a ProGtol:

 

ProGtol my_gtol; // lets pretend it's pointing to a valid item 
ProGtoltype type; // that's what we want to get

 

Old workflow

ProGtoldata data;
ProGtolDataGet(&my_gtol, &data);
ProGtoldataTypeGet(data, &type);
ProGtoldataFree(&data);

 

New workflow

ProGtolTypeGet(&my_gtol, &type);

 

So the replacement of ProGtolDataGet depends on what you're actually doing with the gtol. Use the new functions to achieve the same goal as before.

10-Marble
September 16, 2022

Ah, I see, thank you for the help