<?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 Layer 3D to Feature Class missing colors in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/layer-3d-to-feature-class-missing-colors/m-p/271974#M11879</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 am using the 'Layer 3D to Feature Class' tool with features with features that are relative to the ground in order to get these features at an absolute height (as described &lt;A _jive_internal="true" href="https://community.esri.com/thread/188920-why-is-scene-layer-package-floating-in-agol-scene-viewer-looks-fine-in-pro"&gt;in this thread&lt;/A&gt;). When I use the tool from the toolbox in ArcGIS Pro, everything works fine. But as this tool only accepts one layer at a time as an input layer, I tried to write a script that uses all layers in the current project. My script currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\MA\ArcGISProProjects\Elev"&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject('CURRENT')&lt;BR /&gt;MapList = aprx.listMaps()&lt;BR /&gt;Map3D = MapList[0]&lt;BR /&gt;LayerList = Map3D.listLayers()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i in range(len(LayerList)):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (str(LayerList&lt;I&gt;.name) + ' is being processed.')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if LayerList&lt;I&gt;.isFeatureLayer == True:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerFile = LayerList&lt;I&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile = r'{0}3D'.format(LayerList&lt;I&gt;.name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Layer3DToFeatureClass_3d(LayerFile, outFile, '#', 'ENABLE_COLORS_AND_TEXTURES')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm running this script, the resulting multipatch layers are created without colors, although I set 'disable materials' to ENABLE_COLORS_AND_TEXTURES. I already tried the script without the optional parameters, I tried to save the layers as external layer files with, but nothing helped. Am I doing something wrong or is this a known bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 13:59:27 GMT</pubDate>
    <dc:creator>ChristophStöckerl2</dc:creator>
    <dc:date>2017-06-29T13:59:27Z</dc:date>
    <item>
      <title>Layer 3D to Feature Class missing colors</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-3d-to-feature-class-missing-colors/m-p/271974#M11879</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 am using the 'Layer 3D to Feature Class' tool with features with features that are relative to the ground in order to get these features at an absolute height (as described &lt;A _jive_internal="true" href="https://community.esri.com/thread/188920-why-is-scene-layer-package-floating-in-agol-scene-viewer-looks-fine-in-pro"&gt;in this thread&lt;/A&gt;). When I use the tool from the toolbox in ArcGIS Pro, everything works fine. But as this tool only accepts one layer at a time as an input layer, I tried to write a script that uses all layers in the current project. My script currently looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\MA\ArcGISProProjects\Elev"&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject('CURRENT')&lt;BR /&gt;MapList = aprx.listMaps()&lt;BR /&gt;Map3D = MapList[0]&lt;BR /&gt;LayerList = Map3D.listLayers()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i in range(len(LayerList)):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (str(LayerList&lt;I&gt;.name) + ' is being processed.')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if LayerList&lt;I&gt;.isFeatureLayer == True:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerFile = LayerList&lt;I&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile = r'{0}3D'.format(LayerList&lt;I&gt;.name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Layer3DToFeatureClass_3d(LayerFile, outFile, '#', 'ENABLE_COLORS_AND_TEXTURES')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm running this script, the resulting multipatch layers are created without colors, although I set 'disable materials' to ENABLE_COLORS_AND_TEXTURES. I already tried the script without the optional parameters, I tried to save the layers as external layer files with, but nothing helped. Am I doing something wrong or is this a known bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-3d-to-feature-class-missing-colors/m-p/271974#M11879</guid>
      <dc:creator>ChristophStöckerl2</dc:creator>
      <dc:date>2017-06-29T13:59:27Z</dc:date>
    </item>
  </channel>
</rss>

