General InformationThis opening ID is invoked when you route the following elements in a diagram view:
This opening ID is used to customize the available routing modes (angle, straight, single step orthogonal) according to the routable object.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Notes:
SampleThe following example shows you how to define routing modes for given routing elements.
Notify("Rule triggered")
Let RoutableReference(RFLVPMLogicalReference)
Set RoutableReference = Parameters.GetAttributeObject ("Routable_Ref")
Let StraightModeAvailable(Boolean)
Set StraightModeAvailable = TRUE
Let AngledModeAvailable(Boolean)
Set AngledModeAvailable = TRUE
Let OrthoModeAvailable(Boolean)
Set OrthoModeAvailable = TRUE
Let IsFortyFiveAngleAllowed (Boolean)
Set IsFortyFiveAngleAllowed = TRUE
if (NULL <> RoutableReference)
{
Notify("RoutableObject")
Let RoutableObjectType(String)
Set RoutableObjectType = RoutableReference.V_discipline
If ( "Piping_Logical_Pipe" == RoutableObjectType)
{
Notify("Logical Pipe")
Set StraightModeAvailable = FALSE
Set OrthoModeAvailable = FALSE
Set IsFortyFiveAngleAllowed = FALSE
}
}
else
{
Notify("Logical Connection")
Set StraightModeAvailable = FALSE
}
Parameters.SetAttributeBoolean("StraightMode", StraightModeAvailable)
Parameters.SetAttributeBoolean("AngledMode", AngledModeAvailable)
Parameters.SetAttributeBoolean("OrthoMode", OrthoModeAvailable)
Parameters.SetAttributeBoolean("Allow45Angle", IsFortyFiveAngleAllowed)
| ||||||||||||||||||||||||||||||||||||||||||||||||