<?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: How do you get a count of selected objects? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-you-get-a-count-of-selected-objects/m-p/344105#M4768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did find a way to get the total number of shapes selected, I just created a list of the selection and used the len method to get the number of items in the list:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;theShapeList=ce.getObjectsFrom(ce.selection(), ce.isShape)
size = len(theShapeList)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:12:59 GMT</pubDate>
    <dc:creator>LoringTupper</dc:creator>
    <dc:date>2021-12-11T16:12:59Z</dc:date>
    <item>
      <title>How do you get a count of selected objects?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-you-get-a-count-of-selected-objects/m-p/344104#M4767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've selcted a number of parcel polygon shapes in my Viewport, now I want my python script to get the number of polygons I've got selected so I can use that number in a calculation. The standard Python count fucntion does not seem to work and I don't see a ce command listed that does counting. From a python script how would I go about finding out how many shapes I've got selected?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 21:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-you-get-a-count-of-selected-objects/m-p/344104#M4767</guid>
      <dc:creator>LoringTupper</dc:creator>
      <dc:date>2014-06-06T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a count of selected objects?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-you-get-a-count-of-selected-objects/m-p/344105#M4768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did find a way to get the total number of shapes selected, I just created a list of the selection and used the len method to get the number of items in the list:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;theShapeList=ce.getObjectsFrom(ce.selection(), ce.isShape)
size = len(theShapeList)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-you-get-a-count-of-selected-objects/m-p/344105#M4768</guid>
      <dc:creator>LoringTupper</dc:creator>
      <dc:date>2021-12-11T16:12:59Z</dc:date>
    </item>
  </channel>
</rss>

