RenumInfo::RenumExpression
Updates an expression when editing the flow in a model (inserting or deleting a processing unit)
int RenumExpression(
ProcUnit *ptrProcUnit,
int modelNo
);
Parameters
*ptrProcUnit
|
Pointer to processing unit information
|
modelNo
|
Model (expression) number to be converted
|
Return Value
Returns 0 when the expression is successfully converted.
Otherwise returns a non-zero value.
Description
Updates the specified expression when a processing unit is added, deleted, or moved.
For example, when the next expression is set to "U2.X+U3.Y+10", if you delete the unit 1 and execute this method, the expression is changed to "U1.X+U2.Y+10". Similarly, when it is set to "U2.X+U3.Y+10", if you delete the unit 2 and execute this method, the expression is changed to "#ERR+U2.Y+10".
Example
int Sample::RenumProc(ProcUnit *ptrProcUnit, RenumInfo *ptrRenumInfo)
{
// Update expressions
for (int modelNo = 0; modelNo < 8; modelNo++) {
ptrRenumInfo->RenumExpression(ptrProcUnit, modelNo);
}
}