add_warning_message#

AedtLogger.add_warning_message(message_text, level=None)[source]#

Add a type 1 “Warning” message to the message manager tree.

Also add a warning message to the logger if the handler is present.

Parameters:
message_textstr

Text to display as the warning message.

levelstr, optional

Level to add the warning message to. Options are "Global", "Project", and "Design". The default is None, in which case the warning message gets added to the "Design" level.

Examples

Add a warning message to the AEDT message manager.

>>> hfss.logger.warning("Global warning message")