<?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: Generate object names from a value from the object attributes in CityEngine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/generate-object-names-from-a-value-from-the-object/m-p/724719#M9562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nelson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls find attached a python module that should solve your problem.&lt;/P&gt;&lt;P&gt;Copy the .py file into the script folder of your project.&lt;/P&gt;&lt;P&gt;In order to make it work you need to replace "myAttr" with the attributes name you want to use. Save it afterwards.&lt;/P&gt;&lt;P&gt;Select the shapes you want to rename &lt;STRONG&gt;only&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;With the python script open in the editor go to Python -&amp;gt; Run&amp;nbsp;&lt;/P&gt;&lt;P&gt;the selected shapes should now be renamed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: this script&amp;nbsp;is intended to work exactly for this case. it doesn't handle edge cases such as attribute does not exist, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 May 2019 14:41:40 GMT</pubDate>
    <dc:creator>ChristianIten</dc:creator>
    <dc:date>2019-05-26T14:41:40Z</dc:date>
    <item>
      <title>Generate object names from a value from the object attributes in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/generate-object-names-from-a-value-from-the-object/m-p/724718#M9561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a shapefile with buildings and imported it into CityEngine. All the objects in CityEngine get named automatically. Is there a way to change to generate custom object names from a value in the object attributes table (with&amp;nbsp;a rule file) ?&lt;IMG alt="How to automatically assign the value GEBID as the object name?" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/440845_Unbenannt.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Mar 2019 18:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/generate-object-names-from-a-value-from-the-object/m-p/724718#M9561</guid>
      <dc:creator>NelsonSchäfer1</dc:creator>
      <dc:date>2019-03-31T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate object names from a value from the object attributes in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/generate-object-names-from-a-value-from-the-object/m-p/724719#M9562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nelson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls find attached a python module that should solve your problem.&lt;/P&gt;&lt;P&gt;Copy the .py file into the script folder of your project.&lt;/P&gt;&lt;P&gt;In order to make it work you need to replace "myAttr" with the attributes name you want to use. Save it afterwards.&lt;/P&gt;&lt;P&gt;Select the shapes you want to rename &lt;STRONG&gt;only&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;With the python script open in the editor go to Python -&amp;gt; Run&amp;nbsp;&lt;/P&gt;&lt;P&gt;the selected shapes should now be renamed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: this script&amp;nbsp;is intended to work exactly for this case. it doesn't handle edge cases such as attribute does not exist, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2019 14:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/generate-object-names-from-a-value-from-the-object/m-p/724719#M9562</guid>
      <dc:creator>ChristianIten</dc:creator>
      <dc:date>2019-05-26T14:41:40Z</dc:date>
    </item>
  </channel>
</rss>

