Quintiq file version 2.0
#parent: CustomDrawSCO/CustomDrawDataLayerStockingPointUnitEdge
Response OnDetermineRegion (
  Edge object
) id:Response_CustomDrawSCO_CustomDrawDataLayerStockingPointUnitEdge_OnDetermineRegion
{
  #keys: '[136682.0.1903689133]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDetermineRegion'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      // Determine region for SPUE
      minx := minvalue ( object.FromX(), object.ToX() );
      miny := minvalue ( object.FromY(), object.ToY() );
      maxx := maxvalue ( object.FromX(), object.ToX() );
      maxy := maxvalue ( object.FromY(), object.ToY() );
      height := maxvalue( maxx - minx, 1 );
      width := maxvalue( maxy - miny, 1 );
      
      layer.AddRegion( minx, miny, height, width, 3 );
    *]
  }
}
