<?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>idea Add Support for Guides in arcpy.mp in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idi-p/1154107</link>
    <description>&lt;P&gt;I was recently creating and standardizing settings for layouts in bulk and one thing I was hoping to do was set specific guides for them. If this was possible with python I could have set the vertical and horizontal guides to a offset of 0.25 inches for 50 maps with one click.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 23:27:52 GMT</pubDate>
    <dc:creator>BrettFrahm</dc:creator>
    <dc:date>2022-03-15T23:27:52Z</dc:date>
    <item>
      <title>Add Support for Guides in arcpy.mp</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idi-p/1154107</link>
      <description>&lt;P&gt;I was recently creating and standardizing settings for layouts in bulk and one thing I was hoping to do was set specific guides for them. If this was possible with python I could have set the vertical and horizontal guides to a offset of 0.25 inches for 50 maps with one click.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 23:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idi-p/1154107</guid>
      <dc:creator>BrettFrahm</dc:creator>
      <dc:date>2022-03-15T23:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Support for Guides in arcpy.mp</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idc-p/1154518#M19030</link>
      <description>&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;This is a great example of using Python CIM Access:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/python-cim-access.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/python-cim-access.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;p = arcpy.mp.ArcGISProject("CURRENT")&lt;/P&gt;&lt;P&gt;for lyt in p.listLayouts():&lt;BR /&gt;&lt;BR /&gt;lyt_cim = lyt.getDefinition('V2')&lt;/P&gt;&lt;P&gt;newGuides = []&lt;/P&gt;&lt;P&gt;#Bottom horizontal guide&lt;BR /&gt;botHorz = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2')&lt;BR /&gt;botHorz.position = 0.25&lt;BR /&gt;botHorz.orientation = "Horizontal"&lt;BR /&gt;newGuides.append(botHorz)&lt;/P&gt;&lt;P&gt;#Top horizontal guide&lt;BR /&gt;topHorz = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2')&lt;BR /&gt;topHorz.position = lyt.pageHeight - 0.25&lt;BR /&gt;topHorz.orientation = "Horizontal"&lt;BR /&gt;newGuides.append(topHorz)&lt;/P&gt;&lt;P&gt;#Left vertical guide&lt;BR /&gt;leftVert = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2')&lt;BR /&gt;leftVert.position = 0.25&lt;BR /&gt;leftVert.orientation = "Vertical"&lt;BR /&gt;newGuides.append(leftVert)&lt;/P&gt;&lt;P&gt;#Right vertical guide&lt;BR /&gt;rightVert = arcpy.cim.CreateCIMObjectFromClassName('CIMGuide', 'V2')&lt;BR /&gt;rightVert.position = lyt.pageWidth - 0.25&lt;BR /&gt;rightVert.orientation = "Vertical"&lt;BR /&gt;newGuides.append(rightVert)&lt;/P&gt;&lt;P&gt;#Add guides and make sure they are turned on&lt;BR /&gt;lyt_cim.page.guides = newGuides&lt;BR /&gt;lyt_cim.page.showGuides = True&lt;/P&gt;&lt;P&gt;#Set back to layer&lt;BR /&gt;lyt.setDefinition(lyt_cim)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Jeff - arcpy.mp and Layout teams&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 21:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idc-p/1154518#M19030</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-03-16T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Support for Guides in arcpy.mp - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idc-p/1154815#M19043</link>
      <description>&lt;P&gt;Marking as Already Offered based on the example Jeff provided showing how to achieve this.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 15:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-support-for-guides-in-arcpy-mp/idc-p/1154815#M19043</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2022-03-17T15:09:18Z</dc:date>
    </item>
  </channel>
</rss>

