<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Quick method for connecting multiple nodes to an export node</title><link>https://communities.bentley.com/products/products_generativecomponents/f/generativecomponents---forum/167611/quick-method-for-connecting-multiple-nodes-to-an-export-node</link><description>Hi All, 
 Just wondering if there is a quick way to connect multiple nodes to an export node without typing them all in or wiring them up. 
 I have say 20 polygon nodes I would like to link up and after a bit of experimenting didn&amp;#39;t really get anywhere</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Quick method for connecting multiple nodes to an export node</title><link>https://communities.bentley.com/thread/480303?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 10:03:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f0e160b4-ce65-40e9-81e0-8d6381cd3f64</guid><dc:creator>Wayne Dickerson</dc:creator><description>&lt;p&gt;Thanks Volker,&lt;/p&gt;
&lt;p&gt;I was so close. :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Great way to create a list for export nodes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Makes me think of other ways it could be used when you need a list of nodes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Wayne&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Quick method for connecting multiple nodes to an export node</title><link>https://communities.bentley.com/thread/480092?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 14:05:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bc6153d0-1f59-4585-bf96-5b9d17a29a59</guid><dc:creator>Mueller</dc:creator><description>&lt;p&gt;Hi Wayne,&lt;/p&gt;
&lt;p&gt;You got very close and recognized the obstacle: you are collecting the names of the nodes, but not the nodes themselves.&lt;/p&gt;
&lt;p&gt;If you know the name of the node you want to collect then you can use the function FindNode(string nodeName) to find the node object.&lt;/p&gt;
&lt;p&gt;Those node objects you would collect into an object list.&lt;/p&gt;
&lt;p&gt;Your function then looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;function (string NodeName, int count)
{
    object NodeList = {};
    string NodeItem =&amp;#39;&amp;#39;;

    for (int i = 1; i &amp;lt; count +1; ++i)
    {
        NodeItem = ToString(NodeName + i);
        NodeList.Add(FindNode(NodeItem));
    }
    return NodeList;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Volker&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>