<?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 Re: Guidelines- arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186393#M14345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 06:35:01 GMT</pubDate>
    <dc:creator>Yaron_YosefCohen</dc:creator>
    <dc:date>2015-04-29T06:35:01Z</dc:date>
    <item>
      <title>Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186387#M14339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hi everyone,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I have a lot of mxd files with guidelines in&amp;nbsp; every mxd. i wonder if there is a way with arcpy, to clear all those guidelines at once ?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;in &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s900000007000000" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2) &lt;/A&gt; ,&amp;nbsp; &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/MapsurroundElement/00s300000035000000/" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; ,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;i didn't saw any mention for what i seeking.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 06:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186387#M14339</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-04-26T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186388#M14340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​Hi YYC, &lt;/P&gt;&lt;P&gt;I bet resetting you normal.mxt would do the trick, but it will also reset all the other interface customizations you made, such as non-default placement of menus, etc. It's worth a try though, since if you just rename the current one and it doesn't work, you can always put it back to the current by renaming it back.&amp;nbsp; It's also a very quick test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt; Covers how to reset in his blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-2121"&gt;Resetting your ArcGIS application profile&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 18:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186388#M14340</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-04-26T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186389#M14341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, the only way to access guides inside a specific mxd is through ArcObjects, which you can access through comtypes/Snippets (see &lt;A href="http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt; for more).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe deleting your Normal.mxt will do anything to an existing mxd, but I can't test that at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will remove the vertical guides from an mxd, if you have comtypes and Snippets properly installed - you can do the same for horizontal guides:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;from comtypes.client import GetModule, CreateObject
from Snippets import GetLibPath, InitStandalone

def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; InitStandalone()
&amp;nbsp;&amp;nbsp;&amp;nbsp; modCarto = GetModule(r"C:\Program Files (x86)\ArcGIS\Desktop10.2\com\esriCarto.olb")
&amp;nbsp;&amp;nbsp;&amp;nbsp; snapGuide = CreateObject(modCarto.SnapGuides, interface=modCarto.ISnapGuides)
&amp;nbsp;&amp;nbsp;&amp;nbsp; mxdObject = CreateObject(modCarto.MapDocument, interface=modCarto.IMapDocument)
&amp;nbsp;&amp;nbsp;&amp;nbsp; mxdObject.Open(r"C:\junk\guides.mxd")
&amp;nbsp;&amp;nbsp;&amp;nbsp; snapGuide = mxdObject.PageLayout.VerticalSnapGuides
&amp;nbsp;&amp;nbsp;&amp;nbsp; snapGuide.RemoveAllGuides()
&amp;nbsp;&amp;nbsp;&amp;nbsp; mxdObject.Save()
&amp;nbsp;&amp;nbsp;&amp;nbsp; del mxdObject

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186389#M14341</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T09:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186390#M14342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca,&lt;/P&gt;&lt;P&gt;i tried delete the normal mxt but it didn't remove the guide lines- thanks any way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 05:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186390#M14342</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-04-29T05:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186391#M14343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren&lt;/P&gt;&lt;P&gt;unfortunately i don't know &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ArcObjects &lt;/SPAN&gt;yet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 05:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186391#M14343</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-04-29T05:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186392#M14344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bummer...it was just a guess.​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186392#M14344</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-04-29T06:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Guidelines- arcpy</title>
      <link>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186393#M14345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 06:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/guidelines-arcpy/m-p/186393#M14345</guid>
      <dc:creator>Yaron_YosefCohen</dc:creator>
      <dc:date>2015-04-29T06:35:01Z</dc:date>
    </item>
  </channel>
</rss>

