Questions tagged [newline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
34 views

arcpy.AddMessage does not produce newlines in ArcGIS Pro

I would like to produce additional newlines when using arcpy.AddMessage . I am using arcpy code assigned to a geoprocessing tool and want to have a newline between some messages. This doesn't happen. ...
2
votes
2answers
322 views

Removing newline from AddMessage() with ArcPy

I am looking for a way to add text in the same line in the progress dialog box. The AddMessage() adds a newline and this is not convenient. For example: I want to have one line with the text: arcpy....
1
vote
1answer
388 views

Enumerating messages in arcpy.GetMessages()?

Messages are present in GetMessages() but it's a formatted string. I want to add some of my own newlines and alter the content on a per-message basis. How do I access the individual messages in ...
3
votes
2answers
35k views

Formatting label expression with newline using Python parser? [duplicate]

I'm having trouble with syntax in 10.2.1, and have have tried just about everything. With arcpy, I am attempting to access a label.expression of an ArcMap layer and modify it to: lbl.expression = '[...
10
votes
4answers
7k views

Breaking dynamic text line in Data Driven Pages

I am using data driven pages and some of my dynamic text attributes are too long for my layout. Is there a way to break the line into 2 or more lines with out editing the data? Example: FROM ...
1
vote
0answers
231 views

Is there an inbuilt arcpy method to insert a new line? [duplicate]

I need to extract a list of all the files and folders within a top level folder. My first thought was to use os.walk in a small python script as it is a simple task. However, I cannot run scripts on ...
2
votes
2answers
3k views

Using newline/page break tag in ArcGIS Desktop Text_Element in arcpy.mapping? [duplicate]

I want to update a Text_Element with a newline or page break using ArcGIS Desktop 10.0. Does anyone know the tag or syntax?
10
votes
2answers
3k views

Inserting newlines in Rectangle Text elements via ArcPy causes overlap?

I ran across an issue the other day when I tried to use ArcPy's mapping module to edit rectangle text elements with newlines (\n) in an ArcMap document. Here's what the output looked like: Here's ...