About the Recognition Program

If a user tries to checkin a file that is not mapped to an ENOVIA object in the working set, then X-CAD Design Management automatically maps the file to the appropriate version in ENOVIA.

This page discusses:

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).

Update Next In Rev

During the bulk load process, the MCADUpdateNextInRevision program updates the revisions option for the selected nodes with the next available value as determined by the policy that governs the object.

For the selected node in the version detection page, this program sets:

  • The target revision to Next
  • The ENOVIA type
  • Target version to blank

For one-to-many mapping for types, the first mapped ENOVIA type is set for the given node. This program has a similar interface as MCADGetLatestRevisionAndVersion, except that the return value revision is always "next" and version is always blank. A typical return value is:

next||mappedMatrixType