Main Rerouting Rule

This action rule calls the sub-rules (panel rerouting rule and profile rerouting rule) according to the target object.

This page discusses:

See Also
Panel Rerouting Rule
Profile Rerouting Rule

General Information

This action rule is invoked when you click Copy in the Rule-based Copy dialog box.

Arguments

Name Type
iCopySpecification StrStructureCopySpecification
iSourceObject Feature
iResultObject Feature

Sample

/*
The order of inputs MUST be respected
iCopySpecification : StrStructureCopySpecification
iSourceObject : Feature
iResultObject : Feature
*/

/* About Action
This Action should be located under a Related Set named 'Copy Rerouting Rule'
*/

// Retrieve sub 'Action' objects for Panel and Profile
let PanelReroutingRule(AdvisorAction)
set PanelReroutingRule = `Relations\Copy Rerouting Rule\Panel Rerouting Rule`
let ProfileReroutingRule(AdvisorAction)
set ProfileReroutingRule = `Relations\Copy Rerouting Rule\Profile Rerouting Rule`

// Fill the input list for sub Action rule script.
let lvReroutingRuleInputs(List)
lvReroutingRuleInputs.Append(iCopySpecification)
lvReroutingRuleInputs.Append(iSourceObject)
lvReroutingRuleInputs.Append(iResultObject)

// Decide which sub Action rule script to be called
let SourcePanel(SldPanel)
let SourcePlate(SldPlate)
let SourceProfile(SldProfile)
set SourcePanel = iSourceObject
set SourcePlate = iSourceObject
set SourceProfile = iSourceObject

if(SourcePanel <> NULL or SourcePlate <> NULL)
{
	// Call Rerouting Rule for Panel type
	PanelReroutingRule->Run(lvReroutingRuleInputs)	
}
else if(SourceProfile <> NULL)
{
	// Call Rerouting Rule for Profile type
	ProfileReroutingRule->Run(lvReroutingRuleInputs)	
}