<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcMap 10.1 hyperlinks with python code in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcmap-10-1-hyperlinks-with-python-code/m-p/387762#M30645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should the python code below for hyperlinks in ArcMap 10.1 with python 2.7 installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;def OpenLink ([PARCEL]):&lt;BR /&gt;parcel = [PARCEL]&lt;BR /&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;BR /&gt;subID = parcel[1:7]&lt;BR /&gt;folder = "rc" + subID[:1] + "00000"&lt;BR /&gt;filename = "s" + subID + "f.tif"&lt;BR /&gt;rasterPath = "r:\\rectsubr\\" + folder + "\\" + filename&lt;BR /&gt;lyr = arcpy.MakeRasterLayer_management(rasterPath, filename)&lt;BR /&gt;arcpy.mapping.AddLayer(df, lyr, "TOP")&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works in ArcMap 10.2 and up.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 16:46:11 GMT</pubDate>
    <dc:creator>JoeyDiehl</dc:creator>
    <dc:date>2016-09-16T16:46:11Z</dc:date>
    <item>
      <title>ArcMap 10.1 hyperlinks with python code</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-10-1-hyperlinks-with-python-code/m-p/387762#M30645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should the python code below for hyperlinks in ArcMap 10.1 with python 2.7 installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;def OpenLink ([PARCEL]):&lt;BR /&gt;parcel = [PARCEL]&lt;BR /&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;BR /&gt;subID = parcel[1:7]&lt;BR /&gt;folder = "rc" + subID[:1] + "00000"&lt;BR /&gt;filename = "s" + subID + "f.tif"&lt;BR /&gt;rasterPath = "r:\\rectsubr\\" + folder + "\\" + filename&lt;BR /&gt;lyr = arcpy.MakeRasterLayer_management(rasterPath, filename)&lt;BR /&gt;arcpy.mapping.AddLayer(df, lyr, "TOP")&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works in ArcMap 10.2 and up.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 16:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-10-1-hyperlinks-with-python-code/m-p/387762#M30645</guid>
      <dc:creator>JoeyDiehl</dc:creator>
      <dc:date>2016-09-16T16:46:11Z</dc:date>
    </item>
  </channel>
</rss>

