<?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>Pick the last element of a list</title><link>https://communities.bentley.com/products/products_generativecomponents/f/generativecomponents---forum/159010/pick-the-last-element-of-a-list</link><description>Hi everybody, 
 I have created a grid and now I want to build walls on the surrounding lines. I only Need the first and the last item of the list. 
 I know that I can achieve this by using an Expression. I simply dont know what I have to type in. Of Course</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/476454?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 20:18:01 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3cbec038-941e-4ffd-a08c-e553ee96955b</guid><dc:creator>Mueller</dc:creator><description>&lt;p&gt;For lists, there are a few methods which are available through auto-completion. In this case, List.First() and List.Last() are methods to retrieve the first and last items of a list, respectively. They can also take an integer number as an argument which then indicates how many &amp;quot;first&amp;quot; or &amp;quot;last&amp;quot; members of the list are returned by the expression.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474598?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 15:30:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0fb31105-31dc-4807-903d-374598b338ef</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;&lt;a href="/products/products_generativecomponents/f/generativecomponents---forum/159113/graphics-not-reacting-properly"&gt;Here&lt;/a&gt; is probably something you might want to achieve - but there are problems with the graphics.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/360/screenGrid6.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Ingo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474533?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 09:29:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d4083a7d-d580-4060-a181-81ceaddda51e</guid><dc:creator>Heiko Hornef</dc:creator><description>&lt;p&gt;I want to build walls on the outer lines. I think something like a Polyline would work, that connects all outer lines.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With my expression I already selected the lines but I need to know how I can use the output of the expression o make it a polyline.&lt;/p&gt;
&lt;p&gt;If I put a node &amp;quot;polyline&amp;quot; behind the expression, how do I heave to define the inputs for it? I first thought it would work with the input definition &amp;quot;Polyline.byElement but If I choose this definition, the node doesnt work.&lt;/p&gt;
&lt;p&gt;Heiko&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474375?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 16:01:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2eee41cc-751e-4d4e-81ac-dcec370b063c</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;I think if you somehow sketch the goal you&amp;#39;re heading for it would be easier to give you a hint.&lt;/p&gt;
&lt;p&gt;Do you want to...&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;... get a polygon on your outer lines?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;... some points with offset to the outer lines?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474350?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 14:18:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8c28a619-9059-456c-bf38-bf2099be2a36</guid><dc:creator>Heiko Hornef</dc:creator><description>&lt;p&gt;I made an Expression with the following script now:&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt;LinesGridX.Last(1),&lt;br /&gt;LinesGridX.First(1),&lt;br /&gt;LinesGridY.Last(1),&lt;br /&gt;LinesGridY.First(1)&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;These are all the surrounding lines. My Problem is, that they are now values of an Expression and I dont know how to make lines out of them. Right now the Output of my Expression-node doesnt fit.&lt;/p&gt;
&lt;p&gt;Do you know what I mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474344?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 13:51:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a4ac3e3e-e836-43b2-9532-a46cf891244c</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;.... so in your case LinesGridX[NumberGridLinesX]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pick the last element of a list</title><link>https://communities.bentley.com/thread/474343?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 13:49:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:40638504-f28a-4c8f-8f41-18e3ee7d13c9</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;Why don&amp;#39;t you use your NumberGridLinesX / Y sliders / values?&lt;/p&gt;
&lt;p&gt;There you already have you maximum value (maybe minus 1)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>