General InformationThis opening ID is invoked when a mechanical interface is being used. This opening ID is used to declare if a mechanical interface based on a Template is valid. This opening ID is used to check if two mechanical interfaces are compatible.
Input ObjectsInput objects must be of the following types:
SampleThe following sample is useful for checking factors other than the type of the two interfaces. A leader can customize the detailed compatibility rules.
/* Parameter definition */
let SICompatibility(Integer)
let Undefined = 0
let Compatible = 1
let NotCompatible = 2
/* Parameter check */
set SICompatibility = Compatible
/* Return code */
if (SICompatibility == Undefined)
{
Validation = True
Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
Parameters.Message = "NotDefined"
}
else if(SICompatibility == Compatible)
{
Validation = True
Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
Parameters.Message = "OK"
}
else if(SICompatibility == NotCompatible)
{
Validation = False
Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
Parameters.Message = "KO"
}
| |||||||