<?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>ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/products/road___site_design/f/geopak-inroads-mx-openroads-forum/219302/ord-2021-r1-10-10-01-03---item-types---element-length-expression</link><description>Hi All, 
 I am currently using ORD 2021 R1 (10.10.01.03). 
 Does anyone know if there is an Item Types expression that can be used to determine the &amp;quot;length&amp;quot; of an element in a corridor model? 
 I thought I might be able to get the value using a System</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/728496?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 06:44:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7d6868a4-e943-4056-a5fe-5d744ebb0350</guid><dc:creator>Sanjivani Ichake</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;As discussed over email, below GetRelatedInstance symbol expression will help you to fetch Length of continuous or non continuous mesh element.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
this.GetRelatedInstance(&amp;quot;OnSameElement:0:MeshSurfaceEntity&amp;quot;).GetRelatedInstance(&amp;quot;Component__Entity_Embedding:1:Corridor&amp;quot;).GetRelatedInstance(&amp;quot;Component__Entity_Embedding:0:LinearEntity3d&amp;quot;).GetElement().LinearElement_Length3d

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am adding these details here, just to inform other guys about this use case solution and about new blog of GetRelatedInstance expression. This will help them to refer it for future use cases.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Above expression looks pretty complex as there are various relationships involved. To form such expressions, you will need some understanding of internal relationships between elements. To get insight into relationships, we have key-in &amp;ldquo;ecx items dump&amp;rdquo; which dumps all instance data of dgn file in one xml file.&lt;br /&gt;I have published one blog recently to give an overview of how to use GetRelatedInstance and how to use the ecx item dump tool. &lt;br /&gt;Here is the blog link:&lt;/p&gt;
&lt;p&gt;&lt;a href="/products/programming/microstation_programming/b/weblog/posts/creating-item-type-expression-with-getrelatedinstance-1672273301"&gt;Creating-item-type-expression-with-GetrRlatedInstance&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sanjivani&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671617?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 22:11:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3be7a2de-c4c3-4577-bc29-f74e4f359aaf</guid><dc:creator>Ryan McCormack</dc:creator><description>&lt;p&gt;Thanks for looking into this Paul and Jan!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671577?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 16:03:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:61851501-db5f-4723-b71c-b8ad99d4ad49</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;thanks for the file, that&amp;#39;s great there is no workspace/workset dependency.&lt;/p&gt;
&lt;p&gt;Unfortunately, I think there is no simple solution available. It&amp;#39;s possible to obtain Start and End Stations using these expressions:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;this.GetRelatedInstance(&amp;quot;OnSameElement:0:MeshSurfaceEntity&amp;quot;).MeshSurfaceEntity_StartStation

this.GetRelatedInstance(&amp;quot;OnSameElement:0:MeshSurfaceEntity&amp;quot;).MeshSurfaceEntity_EndStation&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but the results are strings, not numbers, so the distance (difference between start and end) cannot be calculated. I do not know ORD well enough, but I guess it&amp;#39;s because the station can be formatted text, and not always simple number. Plus, there is no expression available to convert string to number.&lt;/p&gt;
&lt;p&gt;It seems that the length (and direction) is available internally, but to analyze, whether this information can be reached from Item Type element, requires perfect knowledge of ORD internal EC data model ... or to play a day or two with expressions and C# code to check all dependencies, whether such information exists in some EC class.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671376?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 05:52:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d8966cc1-4302-4ecb-8f78-26b6671f008e</guid><dc:creator>Paul Cusack</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any short term plans for that. Whilst I understand that you would see the length as End Station - Start Station the mesh element itself doesn&amp;#39;t carry a length property and it could become confusing if applying clipping to the corridor or other changes that modify the mesh. Something for us to think about though as we expand capabilities for digital engineering requirements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671365?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 04:26:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c236e89a-3fb1-4def-8c4f-c02f97364e44</guid><dc:creator>Ryan McCormack</dc:creator><description>&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/5922/Item-Types-_2D00_-For-BeCommunities-Question.dgn"&gt;communities.bentley.com/.../Item-Types-_2D00_-For-BeCommunities-Question.dgn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;Please find attached a simple model as an example (the file was created in ORD 10.10.01.03 with no workspace/workset). In the file a barrier template has been used in a corridor to create a barrier element. I have then added Item Types to the element called &amp;quot;Item Type Test&amp;quot;. I would like to be able to populate the &amp;quot;Length&amp;quot; Item Type with the length of the barrier element.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you require any additional information. Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/5922/pastedimage1631507168367v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/5922/pastedimage1631507174829v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671081?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:42:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:12965611-b560-48fe-847f-071d8b7a4c84</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;is it possible to share a simple model as an example? A problem with civil model is that it&amp;#39;s complex internally (with a plenty of relations) and Item Type can be attached on different places, which can lead to different expressions.&lt;/p&gt;
&lt;p&gt;Something like a few elements, with attached Item Type with empty expression with explanation &amp;quot;this parameter from this element should be displayed&amp;quot; may help with the analysis, whether the expression can be created or such functionality has to be implemented by Bentley internally.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671054?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 06:30:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ca5e7d25-2aa7-43f9-809d-c38ce72ac9c7</guid><dc:creator>Ryan McCormack</dc:creator><description>&lt;p&gt;Thanks Paul,&lt;/p&gt;
&lt;p&gt;Do you know if it is planned to to make available the same level of information on the components/elements as there is currently on the points/3D linear elements in future releases?&lt;/p&gt;
&lt;p&gt;It would be ideal if information such as length, corridor name, horizontal name and profile name (which are currently available on the points/3D linear elements) were also available on the components/elements.&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ORD 2021 R1 (10.10.01.03) - Item Types - Element Length Expression</title><link>https://communities.bentley.com/thread/671041?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 04:49:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d99e658e-48d8-47cc-8d35-37c1d7bcc4ba</guid><dc:creator>Paul Cusack</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;For template points that become 3D linear elements in the corridor model you can use&amp;nbsp;this.GetElement().LinearElement_Length3d, or if you are seeking a 2D length you can use&amp;nbsp;this.GetElement().LinearElement_Length&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>