Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Function CalcInputY 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    // MKO2 Apr-11-2016 (created) 
 | 
    rcv := this.RoutingConfiguratorView(); 
 | 
    value := 0; 
 | 
     
 | 
    // is input pisp 
 | 
    if( not isnull( this.AsInputPISPNodeInRouting() ) ) 
 | 
    { 
 | 
      // Checks if its the first input node 
 | 
      if( not isnull( this.AsFirstInputNode() ) ) 
 | 
      { 
 | 
        value := rcv.OffsetY();/*guard( this.OperationInputForRCV().OperationInputGroup().Y(), 
 | 
                    this.OperationInputForRCV().Y() )*/ 
 | 
      } 
 | 
      else 
 | 
      { 
 | 
        // Position directly below the previous pisp node or on the same level as the input node, 
 | 
        // Whichever larger 
 | 
        value := this.PreviousInputNode().Y() + this.Height();/*maxvalue( this.PreviousInputNode().Y() + this.Height(), 
 | 
                       guard( this.OperationInputForRCV().OperationInputGroup().Y(), this.OperationInputForRCV().Y() ) 
 | 
                       );*/ 
 | 
      } 
 | 
    } 
 | 
     
 | 
    this.InputY( value ); 
 | 
  *] 
 | 
} 
 |