HM_ping_translator()
Tracks the version number of the translator.
Syntax
void HM_ping_translator(int argc, char *argv[],const char *TVERSION, const char *TIME, const char *DATE)
Type
HyperMesh hmlib Function
Description
Tracks the version number of the translator.
Inputs
- argc
- Number of arguments passed to the translator main() function.
- argv
- Arguments passed to the translator main() function.
- TVERSION
- The version number of the translator.
- TIME
- The time of the build of the translator.
- DATE
- The date of the build of the translator.
Example
This command is used so that all translators will report their version information in a consistent manner.
In a translator’s main() function you would use this function according to the following example:
int main(int argc, char *argv[])
{
const char *my_version = "1.0";
HM_ping_translator(argc, argv,my_version,__TIME__,__DATE__);
/* rest of code */
}
When "mytrans -version" [i.e., abaqus.exe -version] is entered at the command prompt, theHyperMesh version and the translator version with the time and date of build is displayed.
Errors
None.