admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Quintiq file version 2.0
#parent: #root
Method GetInputOutputX () declarative as Number
{
  Description: 'This method is used by the input output nodes as well as the input group'
  TextBody:
  [*
    // ying ying Feb-11-2016 (created)
    
    opwidth := guard( this.RoutingStep().Routing().RoutingConfiguratorView().OperationWidth(), 100 );
    opiowidth := guard( this.RoutingStep().Routing().RoutingConfiguratorView().OperationInputOutputWidth(), 100 );
    
    //when io width is less than op width, move right, else move left
    diff := opwidth - opiowidth;
    x := this.X() + [Number](diff / 2);
    
    return x;
  *]
}