General InformationThe precommit at Sample to Define Business Logic to retain an Architecture NumberThe following sample describes how to define a business logic to retain an Architecture Number when you create a branch from an existing logical item.
Let TargetObject (RFLVPMLogicalReference)
Let fromAN (String)
Let targetAN (String)
Let fromLogId (String)
Let targetLogId (String)
Set TargetObject = Parameters.Macros.GetObject("NEWOBJECT")
fromLogId = ThisObject.GetAttributeString("logicalid")
targetLogId = TargetObject.GetAttributeString("logicalid")
// New Branch
if (targetLogId == fromLogId) {
fromAN = ThisObject.GetArchitectureNumber()
targetAN = fromAN
TargetObject.SetArchitectureNumber(targetAN)
}
| |||||||