<?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>MDL function &amp;quot;XFMCompareCurrentScaleName&amp;quot; not found in Bentley Map APi help file</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/178117/mdl-function-xfmcomparecurrentscalename-not-found-in-bentley-map-api-help-file</link><description>Hi 
 Looking for the XFMCompareCurrentScaleName in the BentleyMap Api help file but with no luck. 
 The function apears in the Geospatial Administrator Help under Criterias. 
 Is XFMCompareCurrentScaleName a hidden function ? 
 If yes would there be something</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: MDL function "XFMCompareCurrentScaleName" not found in Bentley Map APi help file</title><link>https://communities.bentley.com/thread/516604?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 13:15:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6a04b0be-948a-4078-b22f-a7b91950b7c2</guid><dc:creator>cdalesandro</dc:creator><description>&lt;p&gt;Hello Erik,&lt;/p&gt;
&lt;p&gt;XFMCompareCurrentScaleName is not a hidden function.&amp;nbsp;&amp;nbsp; XFM publishes this function to the MDL CExpression evaluator environment using mdlCExpression_publishFunction. I see XFMCompareCurrentScaleName mentioned in the API helpfile in the &amp;quot;XFM Overview&amp;quot; topic under Criteria, but this function is not in the help file index.&amp;nbsp; We will fix that.&lt;/p&gt;
&lt;p&gt;For completeness, here is a description and example for this function:&lt;/p&gt;
&lt;p&gt;Compare a scale name to the active scale name using the XFM function &lt;span style="background-color:#0078d7;color:#ffffff;"&gt;XFMCompareCurrentScaleName&lt;/span&gt;. This function returns 1 if the scale names are equal or 0 otherwise.&lt;/p&gt;
&lt;p&gt;1==&lt;span style="background-color:#0078d7;color:#ffffff;"&gt;XFMCompareCurrentScaleName&lt;/span&gt;(&amp;quot;1:1000&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding XFMCompareUserName, consider using System.Environment.UserName() in an expression to compare to some user name.&amp;nbsp; For more information about this method, see &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v14/en/NamedExpressions.html"&gt;MicroStation Named Expressions dialog documentation &lt;/a&gt;for &amp;quot;Utilities&amp;gt;Report Symbols&amp;quot; menu item.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;pre style="background:white;color:black;font-family:Consolas;font-size:13px;"&gt;COMPARE(&amp;quot;[System.Environment.UserName()]&amp;quot;,&amp;nbsp;&amp;quot;John.Doe&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Chris
&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>