General InformationThis opening ID is invoked:
This opening ID is used to customize:
The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Sample
Let naturalDestination(Integer)
Let forcedDestination(Integer)
Let CavitySide(Integer)
Let CoreSide(Integer)
Let OtherSide(Integer)
Let NoDraftSide(Integer)
Let UndercutSide(Integer)
Let SliderSide(Integer)
CavitySide = 1
CoreSide = 2
OtherSide = 3
NoDraftSide = 4
UndercutSide = 5
SliderSide = 6
naturalDestination = Parameters.GetAttributeInteger("NaturalDestination")
forcedDestination = Parameters.GetAttributeInteger("ForcedDestination")
Parameters.SetAttributeInteger("ErrorLevel", 0)
Validation = true
if(naturalDestination == CavitySide And forcedDestination == CoreSide)
{
Parameters.SetAttributeInteger("ErrorLevel", 2)
Parameters.SetAttributeString("ErrorMessage", "A transfer between the Cavity and the Core side is not possible.")
Validation = false
}
if(naturalDestination == CoreSide And forcedDestination == CavitySide)
{
Parameters.SetAttributeInteger("ErrorLevel", 2)
Parameters.SetAttributeString("ErrorMessage", "A transfer between the Core and the Cavity side is not possible.")
Validation = false
}
if(naturalDestination == OtherSide And forcedDestination == CavitySide)
{
Parameters.SetAttributeInteger("ErrorLevel", 1)
Parameters.SetAttributeString("ErrorMessage", "A transfer between the Other and the Cavity side is dangerous.")
}
if(naturalDestination == OtherSide And forcedDestination == CoreSide)
{
Parameters.SetAttributeInteger("ErrorLevel", 1)
Parameters.SetAttributeString("ErrorMessage", "A transfer between the Other and the Core side is dangerous.")
}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||