<?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: Select Continuous Graph Objects in Python in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43797#M591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry, missed that thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's no python method to do this available. would be a good thing though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in 2013, you'll be able to better query selections of street connections, so that may be worth looking into.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently, you can only try to work with getting the node coordinates and work around the missing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 11:08:47 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2013-10-30T11:08:47Z</dc:date>
    <item>
      <title>Select Continuous Graph Objects in Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43796#M590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;related to my previous thread in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/95402-GrowStreet-Parameters?p=339030#post339030" rel="nofollow" target="_blank"&gt;General Discussion&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to use the Continuous Graph Objects selection method via the python console? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case that is not implemented I was thinking of some like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;select every street graph with &lt;SPAN style="font-style:italic;"&gt;isGraph&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style:italic;"&gt;getVertices&lt;/SPAN&gt; to check which ones have vertices in common&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="font-style:italic;"&gt;setSelection&lt;/SPAN&gt; on every &lt;SPAN style="font-style:italic;"&gt;connected&lt;/SPAN&gt; shapes&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;create a list of those in order to act separately on each group...&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Am I going down a blind alley? :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gino&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 17:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43796#M590</guid>
      <dc:creator>ginoorgologo</dc:creator>
      <dc:date>2013-10-29T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select Continuous Graph Objects in Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43797#M591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry, missed that thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's no python method to do this available. would be a good thing though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in 2013, you'll be able to better query selections of street connections, so that may be worth looking into.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently, you can only try to work with getting the node coordinates and work around the missing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 11:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43797#M591</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-30T11:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select Continuous Graph Objects in Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43798#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks Matt, your replies are very useful - as usual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a way around to the problem itself importing my geometries in different layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so now I am trying to select a shape in a given Layer.. is it possible? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking of something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]shapes = ce.getObjectsFrom(ce.scene, **ce.inLayer("Layer_Name")** )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not used to scripting in general, so every time I face a problem I change the initial condition to avoid it... but I guess the problem is my lack in jython &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gino&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 15:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43798#M592</guid>
      <dc:creator>ginoorgologo</dc:creator>
      <dc:date>2013-11-13T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select Continuous Graph Objects in Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43799#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can use a layer as the first argument in getObjectsFrom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;layers = ce.getObjectsFrom(ce.scene, ce.isLayer, ce.withName("'Layer_Name'")&amp;nbsp; # the above returns a list of layers. typically there's only one with this name, so get first entry of list layer = layers[0]&amp;nbsp;&amp;nbsp; allObjectsInLayer = ce.getObjectsFrom(layer)&amp;nbsp; # you can use filters as well when getting objects from layer instead of scene shapesInLayer = ce.getObjectsFrom(layer, ce.isShape) &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 08:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43799#M593</guid>
      <dc:creator>AndreasUlmer</dc:creator>
      <dc:date>2013-11-14T08:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Continuous Graph Objects in Python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43800#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks andreas! That's what I was looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 08:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/select-continuous-graph-objects-in-python/m-p/43800#M594</guid>
      <dc:creator>ginoorgologo</dc:creator>
      <dc:date>2013-11-14T08:56:58Z</dc:date>
    </item>
  </channel>
</rss>

