Added the PrintCommonForZeroUnit format flag
Print “COMMON” instead of “UNIT 0” logic (Comanche Peak)
This commit is contained in:
@@ -1320,7 +1320,11 @@ namespace Volian.Print.Library
|
||||
break;
|
||||
case "{UNITNUMBER}":
|
||||
case "[UNITNUMBER]":
|
||||
plstr = plstr.Replace(token, MySection.MyDocVersion.DocVersionConfig.Unit_Number);
|
||||
string unbr = MySection.MyDocVersion.DocVersionConfig.Unit_Number;
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.PrintCommonForZeroUnit && unbr == "0")
|
||||
plstr = "COMMON"; // for Comanche Peak, replace "Unit 0" with "COMMON"
|
||||
else
|
||||
plstr = plstr.Replace(token, unbr);
|
||||
break;
|
||||
case "{ATTACHNUM}":
|
||||
case "[ATTACHNUM]":
|
||||
|
Reference in New Issue
Block a user