Breaking/returning to new line inside the Value texbox within MapAnnText.

Breaking/returning to new line inside the Value texbox within MapAnnText.

evan.8585
Participant Participant
2,303 Views
20 Replies
Message 1 of 21

Breaking/returning to new line inside the Value texbox within MapAnnText.

evan.8585
Participant
Participant

Hey everyone! Long time lurker and data scrounger here, but first time posting. 
Here's an image of the textbox I'm working with. 

evan8585_1-1653408607844.png

It is located within the Define Annotation Template command with the alias of MAPANNTEXT. 

 

My question is how in the heck do I place a line break within the value box? I can get the info coming fine which consists of pole_number, height, and class using STRCAT, but can not for the life of me figure out how to shift each attribute to a new line. I've tried every combination of forward slash 'P' and 'n' in every location within the text that I can think that return various levels of failure (I've tried: \\P  \P  \p  \\p  \\N  \N  \\n  \n  '\\P'  '\P'  '\p'  '\\p'  '\\N'  '\N'  '\\n'  '\n'  "\\P"  "\P"  "\p"  "\\p"  "\\N"  "\N"  "\\n"  "\n". I've also place these in front of, behind, within, around, and every other place I can imagine within the script to absolutely no avail).  

 

The info is basically this rn concatinated together. I'd like it to look like what's on the left, but it looks like what's on the right. 

evan8585_2-1653409231373.png

Here's the full command I have in place so far:

(STRCAT :POLE_NUMBER@pole (STRCAT :Height@pole (STRCAT :Class@pole)))

 

Please help me!

 

0 Likes
2,304 Views
20 Replies
Replies (20)
Message 21 of 21

evan.8585
Participant
Participant

Wow! Wow! WOW! Thanks for all the great information everyone! I feel like I just received a new toolbox for Christmas and it was fully stocked with all kinds of new and fancy-looking tools! 


(In order of who responded first)

@ChicagoLooper: Thanks for all the step-by-step instruction breakdowns. Those have all been super helpful and I'm definitely going to have to reread them all to make sure I've gotten everything.
P.S. Exactly as you said, I'm not the one creating the data, so I have no clue where the SPAN column is. I have also found most of those fields to be confusing and not totally reliable as far as consistent information being delivered. The template I'm setting up for right now would only work for this set of jobs that are setup in this way, which is about 12-15 projects or so. After that, I'll have to revise my system to work for new variables. 
@O_Eckmann: Super helpful quick-tips that I'm already making use of and plan to continue using in future projects. I really appreciate you writing out the code as well, as I could not, for the life of me, get the order correct for the newline command "\P". 
@Pointdump: Thanks for following along, supplying examples of your own research, and asking succinct questions to the others. All of that was super helpful and I'm glad you were here to do so!
@Koesti: Thanks for putting that guide together. I'm definitely going to have to play around with saving/loading symbols in the .shp file styles templates. I also appreciate you putting that together in English. 

 

I don't know which is the solution to this thread, as I've gleaned information from you all. I definitely have many more options available to me than before I started my inquiry, so thanks everyone! Everyone's reply was a solution!