<?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: Arcpy - Create an Historical Marker on an archiving enabled dataset in Oracle SDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-create-an-historical-marker-on-an-archiving/m-p/82945#M6568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a Historical Marker from Python, an option is using comTypes. Following &amp;nbsp;the next steps, you can create Historical Markers in a Enterprise Geodatabase from Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment: ArcGIS for Desktop 10.4.1 + Python 2.7&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install &lt;STRONG&gt;comtypes-0.6.2.win32.exe &lt;/STRONG&gt;(attached)&lt;/LI&gt;&lt;LI&gt;Go to comtypes folder in "C:\Python27\ArcGIS10.4\Lib\site-packages\comtypes", and delete the&amp;nbsp;&lt;SPAN style="color: #333333; background: #FAFAFA; font-size: 10.0pt;"&gt;&lt;STRONG&gt;automation.pyc, automation.pyo, safearray.pyc, safearray.pyo&lt;/STRONG&gt; files. &amp;nbsp;Edit the file&amp;nbsp;automation.py and insert&amp;nbsp;&lt;SPAN style="text-indent: 48px;"&gt;POINTER(BSTR): VT_BYREF|VT_BSTR, in the _&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;ctype_to _vartype dictionary. &amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/343111_dic.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: 36.0pt; text-indent: 36.0pt;"&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;3. &amp;nbsp;Delete all files in&amp;nbsp;C:\Python27\ArcGIS10.4\Lib\site-packages\comtypes\gen&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;4. Copy the file&amp;nbsp;&lt;STRONG style="font-size: 10.0pt;"&gt;Snippets.py &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(attached)&lt;/SPAN&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;into&amp;nbsp;C:\Python27\ArcGIS10.4\Lib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp; &amp;nbsp;5. From Python Script you must to implement a function to create the Historical Marker. &amp;nbsp;(the example in the test.py file)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/343169_example.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 02:41:11 GMT</pubDate>
    <dc:creator>EdwinRoa</dc:creator>
    <dc:date>2017-03-20T02:41:11Z</dc:date>
    <item>
      <title>Arcpy - Create an Historical Marker on an archiving enabled dataset in Oracle SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-create-an-historical-marker-on-an-archiving/m-p/82944#M6567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to create an &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/working-with-historical-markers.htm"&gt;Historical Marker&lt;/A&gt; programmatically with arcpy v.10.3. The archiving is enabled on a dataset in Oracle SDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, it's related with &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/an-overview-of-the-versions-toolset.htm"&gt;arcpy Version Toolset&lt;/A&gt;, but I can't find the documentation about this.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;First is it possible to create Historical Markers with arcpy? If yea, any tip about this would be appreciated.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Maxime&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-create-an-historical-marker-on-an-archiving/m-p/82944#M6567</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-03-09T20:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Create an Historical Marker on an archiving enabled dataset in Oracle SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-create-an-historical-marker-on-an-archiving/m-p/82945#M6568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a Historical Marker from Python, an option is using comTypes. Following &amp;nbsp;the next steps, you can create Historical Markers in a Enterprise Geodatabase from Python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment: ArcGIS for Desktop 10.4.1 + Python 2.7&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install &lt;STRONG&gt;comtypes-0.6.2.win32.exe &lt;/STRONG&gt;(attached)&lt;/LI&gt;&lt;LI&gt;Go to comtypes folder in "C:\Python27\ArcGIS10.4\Lib\site-packages\comtypes", and delete the&amp;nbsp;&lt;SPAN style="color: #333333; background: #FAFAFA; font-size: 10.0pt;"&gt;&lt;STRONG&gt;automation.pyc, automation.pyo, safearray.pyc, safearray.pyo&lt;/STRONG&gt; files. &amp;nbsp;Edit the file&amp;nbsp;automation.py and insert&amp;nbsp;&lt;SPAN style="text-indent: 48px;"&gt;POINTER(BSTR): VT_BYREF|VT_BSTR, in the _&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;ctype_to _vartype dictionary. &amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/343111_dic.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: 36.0pt; text-indent: 36.0pt;"&gt;&lt;SPAN style="color: #333333; background: #FAFAFA;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;3. &amp;nbsp;Delete all files in&amp;nbsp;C:\Python27\ArcGIS10.4\Lib\site-packages\comtypes\gen&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;4. Copy the file&amp;nbsp;&lt;STRONG style="font-size: 10.0pt;"&gt;Snippets.py &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(attached)&lt;/SPAN&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;into&amp;nbsp;C:\Python27\ArcGIS10.4\Lib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp; &amp;nbsp;5. From Python Script you must to implement a function to create the Historical Marker. &amp;nbsp;(the example in the test.py file)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/343169_example.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Edwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 02:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-create-an-historical-marker-on-an-archiving/m-p/82945#M6568</guid>
      <dc:creator>EdwinRoa</dc:creator>
      <dc:date>2017-03-20T02:41:11Z</dc:date>
    </item>
  </channel>
</rss>

