<?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: sdelayer command in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314864#M24474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
program = "C:\\Python25\\Test\\LH-Sitekit\\sitekit\\engine\\install-nt.bat"
# supply the proper input values as strings
input1 = 'x'
input2 = 'x'
input3 = 'z'

import subprocess
subprocess.call([program, input1, input2, input3])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or you can just use the geoprocessing tools to create tables and featureclasses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Create_Feature_Class/00170000002p000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Create_Feature_Class/00170000002p000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:59:29 GMT</pubDate>
    <dc:creator>AndrewChapkowski</dc:creator>
    <dc:date>2021-12-11T14:59:29Z</dc:date>
    <item>
      <title>sdelayer command in Python</title>
      <link>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314863#M24473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently we have a batch file that creates feature classes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to do the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sdelayer -o register -l M_SIGN_INVENTORY,GEOM -C OBJECTID -u %USERID% -p %USERPASSWORD% -e 3npM -x 0,0,3048 -z 0,10000 -P HIGH -t SDO_GEOMETRY -G file=%CRSFILE%&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in python script ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initially I create a database table using sql create statement. Table is empty. It has indexes, including index on ObjecID and Spacial index.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 11:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314863#M24473</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-12-14T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: sdelayer command in Python</title>
      <link>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314864#M24474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
program = "C:\\Python25\\Test\\LH-Sitekit\\sitekit\\engine\\install-nt.bat"
# supply the proper input values as strings
input1 = 'x'
input2 = 'x'
input3 = 'z'

import subprocess
subprocess.call([program, input1, input2, input3])
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or you can just use the geoprocessing tools to create tables and featureclasses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Create_Feature_Class/00170000002p000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Create_Feature_Class/00170000002p000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314864#M24474</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-11T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: sdelayer command in Python</title>
      <link>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314865#M24475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached is a toolbox containing two custom script tools that I wrote a little while ago. The first one will register a spatial table with SDE and then with the geodatabase. The second will register a regular table with SDE and then with the geodatabase. I have hardcoded a number of options either through the script itself or through the tool dialog. You should be able to edit this tool/script to your liking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 13:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314865#M24475</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2010-12-15T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: sdelayer command in Python</title>
      <link>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314866#M24476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Thank you for py scrips, I am going to study them. Idea there is to invoke sdelayer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The CreateFeatureclass_management() is something I tried. However, I was unable to figure out how to make resulting table to look like I want. It always creates Oracle table with 3 default columns. I tried to use template but it appears the template gets ignored or perhaps I do not use it correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 13:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sdelayer-command-in-python/m-p/314866#M24476</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-12-15T13:44:11Z</dc:date>
    </item>
  </channel>
</rss>

