WarrenMedernach

Setting Map Document Properties

Discussion created by WarrenMedernach on Aug 30, 2011
Latest reply on Aug 30, 2011 by mzcoyle
Hello,

I am trying to update Map Document Properties, but am struggling with the syntax for a carriage return/ line feed in the description property.

If I use the Python window I can retrieve the description property and it looks something like this:
>>> mxd.description
u'Test Line 1\r\nTest Line 2'


If I set the description property with the Python window with the following string:
>>> mxd.description='New Line 1\r\nNew Line 2'


It works as expected.

However, if I try to specify that same string via a script parameter it adds an extra '\' and looks like:
u'Test Line 1\\r\\nTest Line 2'


Any ideas/suggestions would be greatly appreciated.

Thanks!

Warren M

Outcomes