<?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: Problem with PortalUploadSettings in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297727#M4139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used the example as a reference and used my own file name &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I used the "os.path.exists" check and it came back true, but the popup form still came up.&lt;/P&gt;&lt;P&gt;In the meantime, I've worked around this problem by doing a system call to a script that does the equivalent POST to arcGIS online. &amp;nbsp;This works out even better, because I also want to create a scene layer from the scene layer package and share it with the public.&lt;/P&gt;&lt;P&gt;-Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 16:02:25 GMT</pubDate>
    <dc:creator>RobertYu</dc:creator>
    <dc:date>2017-03-08T16:02:25Z</dc:date>
    <item>
      <title>Problem with PortalUploadSettings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297725#M4137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;SPAN class=""&gt;PortalUploadSettings to automate the upload .spk files to ArcGIS online according&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;to the example in the documents:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uploadsettings&amp;nbsp;=&amp;nbsp;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings"&gt;PortalUploadSettings&lt;/A&gt;()&lt;SPAN class=""&gt;&lt;BR style="color: #000000; background-color: #77a3df; font-size: 11.7px;" /&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uploadsettings.&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings-setFile"&gt;setFile&lt;/A&gt;("/general/data/rpk/rpkassets_simple_01.rpk")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uploadsettings.&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings-setTitle"&gt;setTitle&lt;/A&gt;("RPK_Script_Upload")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uploadsettings.&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings-setDescription"&gt;setDescription&lt;/A&gt;("RPK&amp;nbsp;from&amp;nbsp;apidoctest&amp;nbsp;script&amp;nbsp;cga0")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uploadsettings.&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings-setUsername"&gt;setUsername&lt;/A&gt;(username)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uploadsettings.&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/python/jscripting/jscripting.PortalUploadSettings.html#PortalUploadSettings-setPassword"&gt;setPassword&lt;/A&gt;(password)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ce.upload(uploadsettings)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;but CityEngine pops up a form asking for the filename&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;even when I have done "setFile".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Have others been successful using PortalUploadSettings?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297725#M4137</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-07T18:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PortalUploadSettings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297726#M4138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;in an standard CityEngine installation the RPK referenced in the example does not exist. &lt;BR /&gt;This is the reason the "Select file for upload..." dialog pops up. &lt;BR /&gt;Please verify in your script, that the file intended for upload does exist by using:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; os&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path 
os&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;exists&lt;/SPAN&gt;&lt;SPAN class=""&gt;(ce.&lt;/SPAN&gt;&lt;SPAN class=""&gt;toFSPath(workspacePath))


&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297726#M4138</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2021-12-11T14:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PortalUploadSettings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297727#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used the example as a reference and used my own file name &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I used the "os.path.exists" check and it came back true, but the popup form still came up.&lt;/P&gt;&lt;P&gt;In the meantime, I've worked around this problem by doing a system call to a script that does the equivalent POST to arcGIS online. &amp;nbsp;This works out even better, because I also want to create a scene layer from the scene layer package and share it with the public.&lt;/P&gt;&lt;P&gt;-Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/problem-with-portaluploadsettings/m-p/297727#M4139</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-08T16:02:25Z</dc:date>
    </item>
  </channel>
</rss>

