<?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 Expose the isReadOnly property on an aprx object in arcpy.mp in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idi-p/1179874</link>
    <description>&lt;P&gt;We often work with an aprx project in arcpy (both interactively with a GP tool and from outside session).&amp;nbsp; Sometimes we need to save the project.&amp;nbsp; It would be useful to know the state of the project.&amp;nbsp; Our project live on server and many people may be working with it.&amp;nbsp; Exposing the "isReadOnly" property of the project would be helpful to know if the project is currently locked so that we can decide how we want to proceed.&amp;nbsp; Should I save a copy, move on, throw an error, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject({Path or Current})
aprx_state = aprx.isReadOnly

if aprx_state is not True:
    aprx.save()
else:
    # Do something else here&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that if you are running this interactively and your aprx object was created with "CURRENT" then isReadOnly would not return True unless the project was opened elsewhere first.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 17:58:23 GMT</pubDate>
    <dc:creator>JustinReynolds</dc:creator>
    <dc:date>2022-06-03T17:58:23Z</dc:date>
    <item>
      <title>Expose the isReadOnly property on an aprx object in arcpy.mp</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idi-p/1179874</link>
      <description>&lt;P&gt;We often work with an aprx project in arcpy (both interactively with a GP tool and from outside session).&amp;nbsp; Sometimes we need to save the project.&amp;nbsp; It would be useful to know the state of the project.&amp;nbsp; Our project live on server and many people may be working with it.&amp;nbsp; Exposing the "isReadOnly" property of the project would be helpful to know if the project is currently locked so that we can decide how we want to proceed.&amp;nbsp; Should I save a copy, move on, throw an error, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject({Path or Current})
aprx_state = aprx.isReadOnly

if aprx_state is not True:
    aprx.save()
else:
    # Do something else here&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that if you are running this interactively and your aprx object was created with "CURRENT" then isReadOnly would not return True unless the project was opened elsewhere first.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 17:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idi-p/1179874</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2022-06-03T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expose the isReadOnly property on an aprx object in arcpy.mp - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idc-p/1218038#M21508</link>
      <description>&lt;P&gt;This is something we implemented for ArcGIS Pro 3.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 21:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idc-p/1218038#M21508</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-09-30T21:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expose the isReadOnly property on an aprx object in arcpy.mp - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idc-p/1266260#M23644</link>
      <description>&lt;P&gt;This Idea has been implemented in ArcGIS Pro 3.1. Please see the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank" rel="noopener"&gt;What's New documentation&lt;/A&gt; for more new features in Pro 3.1.&lt;/P&gt;&lt;P&gt;The Ideas in ArcGIS Pro 3.1 blog will be wrapped up soon, highlighting all Ideas implemented in this release, including this one. Once complete, I will add the link to this comment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 14:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/expose-the-isreadonly-property-on-an-aprx-object/idc-p/1266260#M23644</guid>
      <dc:creator>AmeliaBradshaw</dc:creator>
      <dc:date>2023-03-10T14:53:50Z</dc:date>
    </item>
  </channel>
</rss>

