Mark Deprecated Script Marked a Replacement as NONE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mark Deprecated Script Marked a Replacement as NONE
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?
Solved! Go to Solution.
- Labels:
-
ProToolkit
-
Toolkit
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ah, I see, thank you for the help
