add_warning_message#
- MaxwellCircuit.add_warning_message(text, level=None)[source]#
Add a type 0 “Warning” message to either the global, active project, or active design level of the message manager tree.
Also add an “Warning” message to the logger if the handler is present.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
Examples
>>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.logger.warning("Global warning message", "Global") >>> hfss.logger.project_logger.warning("Project warning message", "Project") >>> hfss.logger.design_logger.warning("Design warning message")