Select to view content in your preferred language

arcpy - new line in geoprocessing dialog window

7627
18
Jump to solution
04-14-2015 12:52 AM
MarkWisniewski
Deactivated User

Hi,

I am currently using;

arcpy.AddMessage(arcpy.GetMessages())

and

arcpy.AddMessage(fc)

to tell me the features that are being processed by the geoprocessing tool in my script. Is there a way to seperate these in the geoprocessing dialog window by a line spacing because it looks cluttered?

Tags (1)
18 Replies
MarkWisniewski
Deactivated User

The "Running script Clip..."is coming from arcpy.AddMessage(arcpy.GetMessages()) and not added by myself.

0 Kudos
MarkWisniewski
Deactivated User

This is a visual of what I am trying to achieve;

Capture.JPG

0 Kudos
DanPatterson_Retired
MVP Emeritus

as I said

arcpy.AddMessage("")

will produce a blank line

0 Kudos
MarkWisniewski
Deactivated User

No change

0 Kudos
DanPatterson_Retired
MVP Emeritus

Did you try...as suggested...getting rid of the

arcpy.AddMessage(arcpy.GetMessages()) line?

All that line does is get all the messages ... if you want to see where the messages should be added...post your code

0 Kudos
DanPatterson_Retired
MVP Emeritus

Then what happens when you remove that line? and just leave the arcpy.AddMessage lines alone.  Experiment until you understand the affect of both lines on the outputs.

0 Kudos
MarkWisniewski
Deactivated User

Sorry Dan, I can't get arcpy.AddMessage("") to do anything.

I can get arcpy.AddMessage(fc) to print shapefile names, but with no space before first shapefile.

0 Kudos
DanPatterson_Retired
MVP Emeritus

last try and then this is going into my collection...

arcpy.AddMessage("\n")  

otherwise post your code

MarkWisniewski
Deactivated User

Its not going into your collection . That worked putting arcpy.AddMessage("\n") at the start of my script. Thanks for your patience Dan.

0 Kudos