Quintiq file version 2.0
|
#parent: CustomDrawComponentRoutingConfigurator/CustomDrawDataLayerRoutingConfiguratorBackground
|
Response OnDrop (
|
structured[UnitNode] source,
|
Routing routing
|
) id:Response_CustomDrawComponentRoutingConfigurator_CustomDrawDataLayerRoutingConfiguratorBackground_OnDrop_273
|
{
|
#keys: '[124808.0.1380700517]'
|
Body:
|
[*
|
// Drop unit nodes to create routing step and add units to it
|
operations := routing.CreateRoutingStepAndAddUnits( source );
|
|
//Auto scroll to the newly created op
|
op := maxselect( operations, Elements, op, true, op.Y() );
|
if( not isnull( op ) )
|
{
|
CustomDrawComponentRoutingConfigurator.EnsureVisible( op.X(), op.Y() );
|
}
|
*]
|
CanBindMultiple: false
|
DefinitionID => /CustomDrawComponentRoutingConfigurator/Responsedef_CustomDrawComponentRoutingConfigurator_CustomDrawDataLayerRoutingConfiguratorBackground_OnDrop
|
Precondition:
|
[*
|
return Operation::CanCreate( feedback, source, MacroPlan );
|
*]
|
}
|