<?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>Level Properties - Usage</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/bdn-vba/104911/level-properties---usage</link><description>In Level Manager, the level properties dialog box has a tab named &amp;#39;Usage&amp;#39; which contains the detailed count of various type of elements available in that particular level(refer attached screenshot). How to get that element count details using VBA?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Level Properties - Usage</title><link>https://communities.bentley.com/thread/319811?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2015 07:32:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d5d31e74-aceb-448c-a9c6-31dae241b0db</guid><dc:creator>Dharma Rajan</dc:creator><description>&lt;p&gt;Thanks Robert.&lt;br /&gt; &lt;br /&gt; &amp;#39;set elemEnum = ActiveModelReference.scan(elemScanCrietria)&lt;br /&gt; &amp;#39; count = ubound(elemEnum.BuildArrayFromContents )+1 &lt;br /&gt; &lt;br /&gt; But it may be a time consuming during execution, if the element counts are available in terms of lakhs. &lt;br /&gt; To avoid that time consuming, I use [VBA Wrapper] mdlLevel_getElementCount which will provide the element count based on level with lesser execution time than scan enumerator. But I need the element count details based on type and level with less execution time. So I try to access the Level Properties - Usage (Since element count details are already exist, it may takes less execution time to retrieve it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Level Properties - Usage</title><link>https://communities.bentley.com/thread/319314?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2015 20:19:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1007ae30-6a53-451b-bcdd-d2d33d8bbd01</guid><dc:creator>RobertArnold</dc:creator><description>Hi,&lt;br /&gt;
You could always use a scan enumerator to count the elements on a level...&lt;br /&gt;
--Robert&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>