Select to view content in your preferred language

Formating text in AddMessage

4240
1
08-23-2011 06:13 AM
LorindaGilbert
Frequent Contributor
Hi,
Is there a way of formating text that is in an AddMessage statement?  I'd like to change the color and whether it is bold or not so that the message jumps out to my users on the geoprocessing window.
Thanks,
Jazmateta
Tags (2)
0 Kudos
1 Reply
StacyRendall1
Frequent Contributor
Doubt it... You can try playing with arcpy.AddWarning() and arcpy.AddError() to make more noticeable messages. Some of them might come out colour, I can't remember...

For example:
>>>import arcpy
>>>arcpy.AddMessage('Some message')
Some message
>>>arcpy.AddWarning('Some message')
WARNING: Some message
>>arcpy.AddError('Some message')
ERROR: Some message
0 Kudos