Version Stamps
 
The version stamp object provides a way of keeping track of changes in a Creo Parametric model to which your Creo TOOLKIT application may need to respond. Creo Parametric models and features contain an internal version stamp incremented each time some design change is made to that model or feature. The functions in this section enable you to read version stamps in order to look for design changes.
The version stamp object is called ProWVerstamp because it is a WHandle, or workspace handle. It is a workspace handle because the data structure it references is not the one in the Creo Parametric database, but a copy taken from it, which is private to the Creo TOOLKIT application.
Functions Introduced:
The functions ProMdlVerstampGet() and ProFeatureVerstampGet() enable you to make a workspace copy of the version stamp on a particular model or feature. The function ProMdlVerstampGet() is currently applicable to solids only (parts or assemblies). Both of these functions allocate the space for the workspace object internally. After using the contents of the version stamp object, you can free the workspace memory using ProVerstampFree().
If you want to store a copy of a version stamp to compare to a newly read version later, you should use the nonvolatile representation, which is a C string. The function ProVerstampStringGet() allocates and fills a string that represents the contents of the specified ProWVerstamp object. The ProStringVerstampGet() function performs the reverse translation: it allocates a new ProWVerstamp object and fills it by copying the specified C string.
The function ProVerstampEqual() compares two ProWVerstamp objects to tell you whether the version stamps they represent are equal.
Note:
 
The version stamp on a feature can change not only when the feature definition changes, but also when the feature geometry changes as a result of a change to a parent feature.
È stato utile?