Define versions
Creo Elements/Direct Model Manager is configured to save Models with a VERSION attribute based on a concatenation of two values, Major_Rev and Minor_Rev, separated by a period. The default configuration is for Major_Rev to follow the pattern '1', '2', '3', '4', etc. and the Minor_Rev to follow the pattern ' ', '1', '2', '3', etc. By default, there is a data dictionary applied to the VERSION attribute, so the initial setting of the version attribute and possible future values are controlled by the data dictionary.
MAJOR_REV and MINOR_REV are pseudo attributes; they exist for the purpose of creating the 2-part VERSION, but they do not exist in the database. MINOR_REV cannot be defined without MAJOR_REV. If MINOR_REV is not defined, the field consists of only the MAJOR_REV value.
You can define the initial value and the next value, to produce Version strings with patterns like 'A.00', 'A.01', 'A.02', 'B.00', 'B.01', ..., 'Z.01', 'AA.00' etc., and provide a pick list of valid choices for the user to select from. Beyond this, Java Business logic can be implemented to provide more elaborate versioning schemes. There are two XML tags that control the behavior of these pseudo attributes: <InitialRev> and <SecondRev>.
<InitialRev> and <SecondRev> take a value of '-' for empty, or a numeral or character (uppercase or lowercase).
If you define multiple <InitialRev> tags for MAJOR_REV or MINOR_REV, a list will be automatically built allowing the user to select one of the choices.
Note that <SecondRev> can only be defined when <InitialRev> has been defined.
Using the <NumericOnly> tag for either MAJOR_REV or MINOR_REV causes the list to be restricted to numeric choices.
It is possible to define the data dictionary and the values of MAJOR_REV and MINOR_REV which are incompatible. If you observe strange behavior in the VERSION area, check your data dictionary settings, MAJOR_REV and MINOR_REV settings, and the <InitialRev> values.
Examples
A possible definition for a MAJOR_REV attribute could be:
<Attribute>
MAJOR_REV
<DisplayName catalog="model" msg_num="957">Major Rev</DisplayName>
<AttributeEditorClass>com.osm.datamgmt.editor.MajorRevAttributeEditor</AttributeEditorClass>
<Visible>true</Visible>
<IncludeInLayoutManager>true</IncludeInLayoutManager>
<Searchable>false</Searchable>
<InitialRev>1</InitialRev>
<InitialRev>01</InitialRev>
<InitialRev>A</InitialRev>
</Attribute>
A possible definition for a MINOR_REV attribute could be:
<Attribute>
MINOR_REV
<DisplayName catalog="model" msg_num="958">Minor Rev</DisplayName>
<AttributeEditorClass>com.osm.datamgmt.editor.MinorRevAttributeEditor</AttributeEditorClass>
<Visible>true</Visible>
<IncludeInLayoutManager>true</IncludeInLayoutManager>
<Searchable>false</Searchable>
</Attribute>
Was this helpful?