ClearMessages
For a specified project and design, this command clears all messages in a specified severity range. The user-specified integral severity level is interpreted as:
0 => info, 1 => warning, 2 => error, and 3 => fatal error.
The ClearMessages function accepts four input arguments. The first two specifies project and design, respectively. This function clears messages in the range specified by the third (interpreted as start severity) and fourth (interpreted as stop severity) arguments. The fourth argument has a default value of 0. The last two arguments need not be specified in any given order, i.e., they can indicate either ascending or descendingtrend. The function clears all messages having severity level within this specified range. The start and stop severity need not be specified in any given order (i.e., they can indicate either ascending or descending severity).
| UI Access | In Message Manager, right-click and select Clear messages for [ProjectName]... | |||||||||||||||
| Parameters |
|
|||||||||||||||
| Return Value | None. |
| Python Syntax | ClearMessages(<projectName>, <designName>, <startSeverity>, <stopSeverity>) |
| Python Example |
Preserve Current Functionality; stopSeverity = 0 (DEFAULT VALUE) # startSeverity = 0; clears just the Info messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0) # startSeverity = 1; clears all the Info and Warning messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 1) # startSeverity = 2; clears all the Info, Warning, Error oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 2) # startSeverity = 3; clears all messages, i.e., Info, Warning, Error, Fatal oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 3) Extend the current functionality by enabling range-based deletion # startSeverity = 0; clears the Info messages; oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0) # startSeverity = 0 and stopSeverity = 0; clears all the Info messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0, 0) # startSeverity = 0 and stopSeverity = 1; clears all the Info and Warning messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0, 1) # startSeverity = 0 and stopSeverity = 2; clears all the Info, Warning, and Error messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0, 2) # startSeverity = 0 and stopSeverity = 3; clears all the Info, Warning, Error, and Fatal messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor", "Maxwell3DDesign1", 0, 3)
# startSeverity = 1; clears all the Info and Warning messages; oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",1) # startSeverity = 1 and stopSeverity = 1; clears all the Warning messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",1, 1) # startSeverity = 1 and stopSeverity = 2; clears all the Warning and Error messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",1, 2) # startSeverity = 1 and stopSeverity = 3; clears all the Warning, Error, and Fatal messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",1, 3)
# startSeverity = 2; clears all the Info, Warning, and Error messages; oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",2) # startSeverity = 2 and stopSeverity = 2; clears all the Error messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",2, 2) # startSeverity = 2 and stopSeverity = 3; clears all the Error and Fatal messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",2, 3) # startSeverity = 2 and stopSeverity = 0; clears all the Info, Warning, and Error messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",2, 0)
# startSeverity = 3; clears all the Info, Warning, Error, and Fatal messages; oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",3) # startSeverity = 3 and stopSeverity = 3; clears all the Fatal error messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",3, 3) # startSeverity = 3 and stopSeverity = 0; clears all the Info, Warning, Error, and Fatal messages oDesktop.ClearMessages("Ex_EC_1_Asymmetrical_Conductor","Maxwell3DDesign1",3, 0) |