Latest Revision Version
This program is used for rapid version detection. It is provided as a default program for version detection and retrieves the latest version of the latest revision and the mapped ENOVIA type for the selected node (in version detection page).
For a finalized object, the revision of the latest finalized object is returned (version is returned as a blank string). For one-to-many mapping for types, the first ENOVIA type in the list is returned for a given node.
The MCADGetLatestRevisionAndVersion
program works on
selected nodes in the Unrecognized state. It determines the latest revision
and version of the design based on the input name and CAD type. For example,
the X-CAD Design Management store contains an assembly named Bike-Assembly
with versions A.0, A.1, B.0, and B.1. The program returns B.1 as the
latest revision and version.
However, if the Revision A stream has not been finalized, then applying this program returns A.1 as the latest revision and version.
If you want to customize this functionality, you can use this program as a skeleton and guideline. When writing your own program, the program:
- Should take a "|" separated string containing name and CAD type (for
example,
name|cadType
) for a given node as the first parameter in the string array - Should return a "|" separated string containing revision, version
and ENOVIA type for the given node, in that order (for example,
revision|Version|matrixType
).