<?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>item types - expressions</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/213792/item-types---expressions</link><description>Hi, 
 what is wrong: I want to open the expression builder window and I get this: 
 no builder window opens 
 Open BuildingsDesigner u8 
 regards Rik</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: item types - expressions</title><link>https://communities.bentley.com/thread/649529?ContentTypeID=1</link><pubDate>Thu, 13 May 2021 07:28:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:659e3933-256c-4b1f-99a2-3195de0e4aa7</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="3229" url="~/products/microstation/f/microstation-forum/213792/item-types---expressions/649413"]I do not know haw to get the surface area for a shape[/quote]
&lt;p&gt;It&amp;#39;s an element property.&amp;nbsp; This expression gets that property: &lt;code&gt;this.GetElement().Area&lt;/code&gt;, where &lt;code&gt;this&lt;/code&gt; means the &lt;em&gt;Item Type&lt;/em&gt; instance and &lt;code&gt;this.GetElement()&lt;/code&gt; retrieves the DGN element that owns the instance.&lt;/p&gt;
&lt;p&gt;&lt;a title="LA Solutions: MasterPlanner" href="http://www.la-solutions.co.uk/content/CONNECT/Products/MasterPlanner/MasterPlanner.htm#BuildingCount" rel="noopener noreferrer" target="_blank"&gt;MasterPlanner&lt;/a&gt; uses the above as part of an expression to calculate the number of buildings per plot.&amp;nbsp; Here&amp;#39;s an example DGN file that contains an &lt;em&gt;Item Type&lt;/em&gt; named &lt;em&gt;MasterPlanner&lt;/em&gt;. The definition of property &lt;em&gt;Building Count&lt;/em&gt; contains the expression ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/273/MasterPlanner-01.dgn"&gt;communities.bentley.com/.../MasterPlanner-01.dgn&lt;/a&gt;&lt;/p&gt;
[quote userid="3229" url="~/products/microstation/f/microstation-forum/213792/item-types---expressions/649413"]... no popup box appears...[/quote]
&lt;p&gt;Now I&amp;#39;m confused.&amp;nbsp; Your first screenshot shows a modal dialog.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: item types - expressions</title><link>https://communities.bentley.com/thread/649413?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 19:14:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5b69ab21-26d6-4ef8-ad3a-ea337b3982eb</guid><dc:creator>RikR</dc:creator><description>&lt;p&gt;.... no popup box appears.....&lt;/p&gt;
&lt;p&gt;if I set &amp;quot; 1+1&amp;quot; in the expression area, &amp;nbsp; then the expression is showing the result in the properties window,&lt;/p&gt;
&lt;p&gt;but I do not know haw to get the surface area for a shape to calculate with.... so the builder is necessary&lt;/p&gt;
&lt;div id="ConnectiveDocSignExtentionInstalled"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: item types - expressions</title><link>https://communities.bentley.com/thread/649366?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 15:43:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:260b07b8-7aee-4f9f-8f15-b15995c16078</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;The error message is complaining about array access.&amp;nbsp; I agree that it could be more meaningful: the way it&amp;#39;s written appeals only to programmers. However, you have set the &lt;em&gt;Item Type&lt;/em&gt; property &lt;em&gt;Is Array&lt;/em&gt; to false, so it&amp;#39;s unclear why MicroStation popped that message.&lt;/p&gt;
&lt;p&gt;Had you already started to edit the &lt;em&gt;Expression&lt;/em&gt;?&amp;nbsp; What happens when you click &lt;em&gt;OK&lt;/em&gt; in that message box?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>