<?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 Can't Get a Custom Attribute under Object Attributes using Python in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-t-get-a-custom-attribute-under-object/m-p/1037934#M10137</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In CityEngine 2019,&lt;/P&gt;&lt;P&gt;I'm trying to get an Object Attribute under a Shape's Object Attribute area.&amp;nbsp; The Object Attribute is populated with custom Fields from an SHP's DBF.&amp;nbsp; For Example: The attached picture shows the custom Object Attribute, CODE.&lt;/P&gt;&lt;P&gt;I tried using python to access this Object Attribute, but the printed result is "None".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    object = ce.getObjectsFrom(ce.scene, ce.withName("*Shape*"))
    print(ce.getAttribute(object[0], 'CODE'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get access to these custom Object Attribute fields from the shape?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 13:28:51 GMT</pubDate>
    <dc:creator>CL11</dc:creator>
    <dc:date>2021-03-20T13:28:51Z</dc:date>
    <item>
      <title>Can't Get a Custom Attribute under Object Attributes using Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-t-get-a-custom-attribute-under-object/m-p/1037934#M10137</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In CityEngine 2019,&lt;/P&gt;&lt;P&gt;I'm trying to get an Object Attribute under a Shape's Object Attribute area.&amp;nbsp; The Object Attribute is populated with custom Fields from an SHP's DBF.&amp;nbsp; For Example: The attached picture shows the custom Object Attribute, CODE.&lt;/P&gt;&lt;P&gt;I tried using python to access this Object Attribute, but the printed result is "None".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    object = ce.getObjectsFrom(ce.scene, ce.withName("*Shape*"))
    print(ce.getAttribute(object[0], 'CODE'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get access to these custom Object Attribute fields from the shape?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 13:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-t-get-a-custom-attribute-under-object/m-p/1037934#M10137</guid>
      <dc:creator>CL11</dc:creator>
      <dc:date>2021-03-20T13:28:51Z</dc:date>
    </item>
  </channel>
</rss>

