Bug Number | NIM097698 |
Submitted | Dec 30, 2013 |
Modified | Nov 24, 2020 |
Severity | High |
Applies To | ArcGIS for Desktop |
Version Found | 10.1 |
Prog Language | N/A |
Server Platform | Windows 7 64 Bit |
Client Platform | Windows 7 64 Bit |
Database | N/A |
Locale | N/A |
Status | Not in Current Product Plan |
Version Fixed | |
SP Fixed |
Bug NIM097698
Synopsis
The document path in a dynamic text creates a new line instead of a single line when a map document path consists of a folder starting with the character 'n'.
Additional Information
Currently, we have plans to address this issue in ArcMap. The Dynamic Text element "Path" in ArcGIS Pro does handle directory names beginning with "n" correctly.
Alternate Solution
1. Rename the folder such that it does not have 'n'
-or-
2. Copy paste this code in the python window to populate an existing text element with the path:
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
elm = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT")[0]
elmWidth = 50.0
x = 10
elm.text = '<dyn type="document" property="path"/>'
elm.fontSize = x
while elm.elementWidth > float(elmWidth):
elm.fontSize = x
x = x - 1
arcpy.RefreshActiveView()
del mxd