<?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: Issues with Shapefile Attribute Linking in CityEngine Variables in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1395151#M11316</link>
    <description>&lt;P&gt;Thanks for verifying this. With the connection editor, you mapped the &lt;EM&gt;Rule Attribute&lt;/EM&gt; "&lt;SPAN&gt;Eave_Ht" to an &lt;EM&gt;Object Attribute&lt;/EM&gt; named "EaveHeight". This created the following entry in the &lt;EM&gt;Layer Attributes&lt;/EM&gt;&amp;nbsp;of the "Shapes Sample" layer:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;attr Eave_Ht = getFloatObjectAttr("EaveHeight")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;All &lt;EM&gt;Object Attributes&lt;/EM&gt; of objects in the source layer at the location are getting sampled. In your case the value of the object in the center is returned.&amp;nbsp;&lt;/SPAN&gt;The behavior is expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make a direct connection between a&amp;nbsp;&lt;EM&gt;Rule Attribute&lt;/EM&gt;&amp;nbsp;and&lt;SPAN&gt;&amp;nbsp;an &lt;EM&gt;Object Attribute,&amp;nbsp;&lt;/EM&gt;the names must match. Either add an extra (optionally hidden) attribute to your rule&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@Hidden
attr EaveHeight = 50
attr Eave_Ht = EaveHeight&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or edit the name of the object attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasFuchs_0-1710322276007.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97847i5EC43666B70D0EDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasFuchs_0-1710322276007.png" alt="ThomasFuchs_0-1710322276007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/help/help-inspector.htm#ESRI_SECTION1_5050267501F04FC28BB58C6E82C6866C" target="_blank" rel="noopener"&gt;Inspector—ArcGIS CityEngine Resources | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 09:41:04 GMT</pubDate>
    <dc:creator>ThomasFuchs</dc:creator>
    <dc:date>2024-03-13T09:41:04Z</dc:date>
    <item>
      <title>Issues with Shapefile Attribute Linking in CityEngine Variables</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1393599#M11301</link>
      <description>&lt;P&gt;I've encountered an issue while attempting to link attributes of a shapefile into CityEngine variables to automatically retrieve parameter values. While this process works smoothly for some shapes, I've noticed discrepancies in certain shapes where the values of the shapefile are being altered when connected to parameters.&lt;/P&gt;&lt;P&gt;Has anyone else experienced similar issues? I've double-checked the attribute linking process, and everything seems to be set up correctly. However, it's puzzling why only certain attributes are affected.&lt;/P&gt;&lt;P&gt;Any insights or troubleshooting tips would be greatly appreciated. Thank you in advance for your assistance!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comparison of attributes and parameters" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97502i16A90F87D841E9D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comparison of values.png" alt="Comparison of values.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 18:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1393599#M11301</guid>
      <dc:creator>richiedlon</dc:creator>
      <dc:date>2024-03-09T18:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Shapefile Attribute Linking in CityEngine Variables</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1394571#M11306</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/641499"&gt;@richiedlon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at your screenshots, it seems like you connected the object attribute "Height of the Eave" with your rule attribute "Eave_Ht" via a layer attribute. Have you checked what the values in the Object Attributes section of the Inspector are? Maybe the difference is showing there as well?&amp;nbsp;&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/help/help-inspector.htm" target="_blank"&gt;Inspector—ArcGIS CityEngine Resources | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 10:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1394571#M11306</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2024-03-12T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Shapefile Attribute Linking in CityEngine Variables</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1394583#M11307</link>
      <description>&lt;P&gt;Thank you for your reply. Strange issue is that within city engine object attributes are showing correctly as well. Only when calling the attribute as a parameter gives the incorrect value.&amp;nbsp;&amp;nbsp;What I observed is that it mostly gives the value of the middle object to the main building. Refer to the attachment.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Incorrect attribute call.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97692i9C497A84BDDB3B85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Incorrect attribute call.png" alt="Incorrect attribute call.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1394583#M11307</guid>
      <dc:creator>richiedlon</dc:creator>
      <dc:date>2024-03-12T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Shapefile Attribute Linking in CityEngine Variables</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1395151#M11316</link>
      <description>&lt;P&gt;Thanks for verifying this. With the connection editor, you mapped the &lt;EM&gt;Rule Attribute&lt;/EM&gt; "&lt;SPAN&gt;Eave_Ht" to an &lt;EM&gt;Object Attribute&lt;/EM&gt; named "EaveHeight". This created the following entry in the &lt;EM&gt;Layer Attributes&lt;/EM&gt;&amp;nbsp;of the "Shapes Sample" layer:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;attr Eave_Ht = getFloatObjectAttr("EaveHeight")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;All &lt;EM&gt;Object Attributes&lt;/EM&gt; of objects in the source layer at the location are getting sampled. In your case the value of the object in the center is returned.&amp;nbsp;&lt;/SPAN&gt;The behavior is expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make a direct connection between a&amp;nbsp;&lt;EM&gt;Rule Attribute&lt;/EM&gt;&amp;nbsp;and&lt;SPAN&gt;&amp;nbsp;an &lt;EM&gt;Object Attribute,&amp;nbsp;&lt;/EM&gt;the names must match. Either add an extra (optionally hidden) attribute to your rule&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@Hidden
attr EaveHeight = 50
attr Eave_Ht = EaveHeight&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or edit the name of the object attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasFuchs_0-1710322276007.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97847i5EC43666B70D0EDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasFuchs_0-1710322276007.png" alt="ThomasFuchs_0-1710322276007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/help/help-inspector.htm#ESRI_SECTION1_5050267501F04FC28BB58C6E82C6866C" target="_blank" rel="noopener"&gt;Inspector—ArcGIS CityEngine Resources | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:41:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/issues-with-shapefile-attribute-linking-in/m-p/1395151#M11316</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2024-03-13T09:41:04Z</dc:date>
    </item>
  </channel>
</rss>

