<?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 Input for Layer3DToFeatureClass in Python Script in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/input-for-layer3dtofeatureclass-in-python-script/m-p/711152#M4265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am writing a python script that will batch process Layer3DToFeatureClass.&amp;nbsp; I want all feature classes in a geodatabase to be processed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.overwriteOutput = True&amp;nbsp; inputFC = "C:/Data/3DScript/pythonTest.gdb" # Set workspace env.workspace = inputFC fcList = arcpy.ListFeatureClasses () arcpy.CheckOutExtension("3D") for featureClass in fcList: &amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = inputFC + "/" + featureClass + "_3D" &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Layer3DToFeatureClass_3d(featureClass, outFC)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above script results in "The value cannot be a feature class." In ArcGlobe, however, I can convert the exactly the same feature classes (extruded polygons) using the geoprocessing tool.&amp;nbsp; I am aware that the Layer3DToFeatureClass method requires a Feature Layer as input (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q900000083000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q900000083000000&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; What am I missing here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Azung Kim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 14:13:17 GMT</pubDate>
    <dc:creator>AhjungKim</dc:creator>
    <dc:date>2012-02-01T14:13:17Z</dc:date>
    <item>
      <title>Input for Layer3DToFeatureClass in Python Script</title>
      <link>https://community.esri.com/t5/3d-questions/input-for-layer3dtofeatureclass-in-python-script/m-p/711152#M4265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am writing a python script that will batch process Layer3DToFeatureClass.&amp;nbsp; I want all feature classes in a geodatabase to be processed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.overwriteOutput = True&amp;nbsp; inputFC = "C:/Data/3DScript/pythonTest.gdb" # Set workspace env.workspace = inputFC fcList = arcpy.ListFeatureClasses () arcpy.CheckOutExtension("3D") for featureClass in fcList: &amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = inputFC + "/" + featureClass + "_3D" &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Layer3DToFeatureClass_3d(featureClass, outFC)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above script results in "The value cannot be a feature class." In ArcGlobe, however, I can convert the exactly the same feature classes (extruded polygons) using the geoprocessing tool.&amp;nbsp; I am aware that the Layer3DToFeatureClass method requires a Feature Layer as input (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q900000083000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q900000083000000&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; What am I missing here? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Azung Kim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 14:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/input-for-layer3dtofeatureclass-in-python-script/m-p/711152#M4265</guid>
      <dc:creator>AhjungKim</dc:creator>
      <dc:date>2012-02-01T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Input for Layer3DToFeatureClass in Python Script</title>
      <link>https://community.esri.com/t5/3d-questions/input-for-layer3dtofeatureclass-in-python-script/m-p/711153#M4266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The input needs to be 1 or more layer files (.lyr), which store the 3D rendering properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 16:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/input-for-layer3dtofeatureclass-in-python-script/m-p/711153#M4266</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2012-02-02T16:03:55Z</dc:date>
    </item>
  </channel>
</rss>

