General InformationThis action rule is invoked when you click Copy
Arguments
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) } |