<?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>DG Annotation Formats</title><link>https://communities.bentley.com/products/building/building_analysis___design/f/aecosim-speedikon-forum/84901/dg-annotation-formats</link><description>In the &amp;quot;Manage Datagroup Annotation&amp;quot; dialog, there is a dropdown list of unit formats. I want to get a &amp;quot;MU Label &amp;quot; format which currently isn&amp;#39;t in that list... 
 Anyone knows where can I access the existing vbas so I can copy/modify?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: DG Annotation Formats</title><link>https://communities.bentley.com/thread/248517?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2013 09:36:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9da479f0-4a4f-49ba-b9e0-1bc9ce6edec1</guid><dc:creator>ChrisRev</dc:creator><description>&lt;p&gt;OK I am now facing real-world situation where the Client wants areas in both m2 and SQft...Is this possible with DG annotation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: DG Annotation Formats</title><link>https://communities.bentley.com/thread/239462?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2013 15:59:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:15936b55-6deb-4d95-9029-f68340e49f97</guid><dc:creator>Noel Page</dc:creator><description>&lt;p&gt;They are hard coded in the code base for the program and not accessible to users (including me). That&amp;#39;s why the custom option was added. You can always file a CR to request the MU label be added in a future release. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: DG Annotation Formats</title><link>https://communities.bentley.com/thread/239264?ContentTypeID=1</link><pubDate>Sun, 31 Mar 2013 22:04:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9de62450-e9f2-48a8-93eb-6befe413eed9</guid><dc:creator>ChrisRev</dc:creator><description>&lt;p&gt;OK many thanks Noel, I&amp;#39;m not particularly vba-savvy but I&amp;#39;ll give it a go...Dimensions must use another process since the syles provide MU-Label option... It is on the other hand such an indispensible/obvious one we need... &lt;/p&gt;
&lt;p&gt;Just as a matter of interest, where are the available format options in the Manage Datagroup Annotation coded?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: DG Annotation Formats</title><link>https://communities.bentley.com/thread/239254?ContentTypeID=1</link><pubDate>Sun, 31 Mar 2013 18:51:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cd803ccd-271d-464e-980e-dd3784a62b94</guid><dc:creator>Noel Page</dc:creator><description>&lt;p&gt;Chris,&lt;/p&gt;
&lt;p&gt;MU Label is not available as an option, but you can use a vba to generate any format you want. &amp;nbsp;The &amp;quot;Custom&amp;quot; format will ask you to provide a project, module and Function in a vba. &amp;nbsp;The datagroup annotation tool will pass the value of the field to the vba as a string based key-in argument and then expect to get the reformatted field passed back from the function as a string based key-in argument. &amp;nbsp;The mvba does not need to be loaded when the annotation is updated as long as it is in a folder listed in the MS_VBASEARCHDIRECTORIES configuration variable.&lt;/p&gt;
&lt;p&gt;There are 2 examples provided with AECOsim Building Designer that use the custom format. &amp;nbsp;The Advanced Space Label and the Advanced Door Tag. &amp;nbsp;The MVBA that drives them is DG_Annotation.mvba and you can find it in the vba folder of the US_Dataset (and possible others also).&lt;/p&gt;
&lt;p&gt;The simplest of the functions is Area. &amp;nbsp;It takes in the area of a space, rounds the area to a set number of decimal places and then returns the area with &amp;quot;Sq&amp;quot; plus the Master unit label.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Public Sub Area()&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sSpaceArea As String&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim iNumberOfDecimals As Integer&lt;/code&gt;&amp;nbsp;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Change the value of iNumberOfDecimals to control&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;the number of decimals to show in the Actual Area calculation&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iNumberOfDecimals = 0&lt;/code&gt;&amp;nbsp;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpaceArea = KeyinArguments&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sSpaceArea = CStr(Round(Val(SpaceArea), iNumberOfDecimals)) &amp;amp; &amp;quot; Sq&amp;quot; &amp;amp; ActiveModelReference.masterUnit.Label&lt;/code&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyinArguments = sSpaceArea&lt;/code&gt;&lt;code&gt;End Sub&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;One warning: because the VBA does have to run for each piece of annotation that uses it, you could see a performance hit in Dynamic Views that contain a large number of annotations that reference a vba.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Noel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>