<?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>Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/115897/is-there-a-named-expression-to-check-for-a-specific-sheet-name</link><description>I am looking for info for a Named Expression that determines if a certain Sheet model exists. For example, &amp;quot;BorderSheet&amp;quot; 
 Or if this isn&amp;#39;t possible how about a Named Expression to determine if a specific TagSet exists in the file? 
 Thanks, 
 Regan</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/358238?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 14:53:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0e87e758-aa3d-45ed-8ab6-8752f676e9b5</guid><dc:creator>Robert Hook</dc:creator><description>In addition to Jan&amp;#39;s add-in please note you can find a sample included in the MicroStation V8i MDL SDK showing how to implement a SymbolProvider (similar to Jan’s example) located here: ..\dotnet\examples\NamedExprTest&lt;br /&gt;
&lt;br /&gt;
HTH,&lt;br /&gt;
Bob&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/356731?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 04:34:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:33b1490e-2193-493f-8b02-eb643a0f0f70</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;benias81&amp;quot;]Would it be possible to get the source code as well?[/quote]&lt;/p&gt;
&lt;p&gt;No. I released this SymbolProvider several years ago as freeware, so right now it&amp;#39;s closed solution. I thought already to put it as open source to e.g. GitHub, but because of total lack of time it will not happen soon. The development is based on playing with a code without detail documentation, so before such migration will happen, I want to be sure the code is correct ... and personally I have also to be clear I really want to open and share my not small invested effort and time ;-)&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;benias81&amp;quot;]Also, is there a good resource that teaches how to build your own named expressions?[/quote]&lt;/p&gt;
&lt;p&gt;As far as I know there is no documentation and SymbolProvider API is not a part of standard MicroStation API, there are only functions to work with existing providers and expressions. I did my testing and research based on notes from BDN conference several years ago (I guess it was 2008), I don&amp;#39;t know about any other. So if you are BDN member, you should have access to the materials.&lt;/p&gt;
&lt;p&gt;I have no problem to add or modify the functionality if there will be valuable request and enough time to implement it, as I already did with some my other free tools in the past.&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: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/356713?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 20:57:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5aeb32d7-c9c0-40d1-868e-de41f3a874db</guid><dc:creator>benias81</dc:creator><description>Thank you for providing this. It looks like exactly what i have been looking for. Would it be possible to get the source code as well? &lt;br /&gt;
&lt;br /&gt;
Also, is there a good resource that teaches how to build your own named expressions? I cant seem to find anything on the topic other than that you can do it and examples of how to use ones that are already existing.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/356501?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 15:58:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d42f7159-d998-43af-8d23-9e49481fb415</guid><dc:creator>rpsmith</dc:creator><description>Thanks Jan - we will check it out!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/356383?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 04:54:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3248e2fa-27db-433d-833a-3e9d6ff03e02</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Regan,&lt;/p&gt;
&lt;p&gt;I found some free time and updated a project I played with a few years ago. A resuilt is an attached symbol provider library with the required functionality:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/273/ExpressionReport.jpg"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-discussions-components-files/273/ExpressionReport.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please be aware it&amp;#39;s a freeware without any warranty or support provided.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Jan&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/273/LabTechSymbolProvider_2D00_0.8.2.0.zip"&gt;communities.bentley.com/.../LabTechSymbolProvider_2D00_0.8.2.0.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355973?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 20:02:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b546f885-5571-47bb-9625-f671160239b1</guid><dc:creator>benias81</dc:creator><description>We have created a series of buttons located in the task bar that import the desired sheet size to aid in the adaptation of the sheet space environment. We have hundreds of thousands of files and we needed a method that made the process as quick as possible. &lt;br /&gt;
&lt;br /&gt;
The issue we are trying to address is how to prevent multiple sheets with tags from being imported into the same DGN? The importing is going to happen while we are in the default model so searching active model for sheet is not going to get us there. I also don&amp;#39;t want to use config variables to drive this because there is a chance that paper sizes will change and I need the test that checks for existing sheet spaces to be more dynamic.&lt;br /&gt;
&lt;br /&gt;
Granted there might be a better way of approaching all of this, but this is what we have landed on as an organization. So for the time being the question I have is it possible to check the entire file to determine if either a sheet exists or maybe even a tag set?&lt;br /&gt;
&lt;br /&gt;
Thanks for all the replys!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355971?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 19:45:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d4bf55ca-436d-4c89-8429-bdea00d44e54</guid><dc:creator>Gerald Piotrowski</dc:creator><description>Well if you are using sheet models just put a hide/show test on the task/button to check if the active model is a sheet. Then if it is False it will hide the buttons in a all models other than a sheet model.&lt;br /&gt;
&lt;br /&gt;
If you are using ProjectWise and title block integration, wouldn&amp;#39;t you see if you had title block data in the sheet file, because it would auto populate the tag set with the information from PW? If that is the case then where would the confusion come from?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355952?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 16:55:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:12f7c9da-bf43-4c3e-9fd7-f935db5bc71a</guid><dc:creator>benias81</dc:creator><description>The scenario I am trying to solve is as follows. We are finally getting around to utilizing sheets and adding tags to track the title block information within projectwise. I would like to be able to check if a sheet is already present and if &amp;quot;true&amp;quot; hide the buttons that import new sheets into the dgn in order to avoid having two sheets with tags in the dgn and causing confusion for the users.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355847?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 05:45:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:95f738ce-8646-406c-9c0f-674b225e1589</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Regan,&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;benias81&amp;quot;]I wonder why they don&amp;#39;t have an expression that checks the active file for a sheet model? [/quote]&lt;/p&gt;
&lt;p&gt;In my opinion your question makes no sense if formulated this way and is not constructive at all. If you think there is a valuable reason why such Named Expression should be added to MicroStation, provide some workflow or a description of situation (scenario) how it would be used. I am quite curious how you would like to use such Name Expression (my assumption is it would be something like DoesSheetExistInActiveFile(string sheetName) returning true/false).&lt;/p&gt;
&lt;p&gt;I guess Named Expressions are treated to be designed to work with current session information, not with anything existing elsewhere. This seems to me more like general concept, not technical limitation. And it&amp;#39;s possible to create own Symbol Provider with own Named Expressions.&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: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355836?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 23:34:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:eea6d8e1-4933-4a9c-ba8f-5c765cc570d9</guid><dc:creator>DavidG</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;benias81&amp;quot;]Seems like this feature would have multiple applications including printing.[/quote]&lt;/p&gt;
&lt;p&gt;Why not just use print organizer? &amp;nbsp;It will find all your sheet models for printing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355827?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 21:58:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9e958867-cfa3-4c43-b7c6-8de4ef87e11c</guid><dc:creator>benias81</dc:creator><description>I wonder why they don&amp;#39;t have an expression that checks the active file for a sheet model? Seems like this feature would have multiple applications including printing.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a Named Expression to check for a specific sheet name?</title><link>https://communities.bentley.com/thread/355825?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 21:26:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0df72e12-1038-4ba8-b6ec-868a4ac0b3ca</guid><dc:creator>Gerald Piotrowski</dc:creator><description>This will returen true if the active model type is a sheet and the model name is &amp;quot;BorderSheet&amp;quot;&lt;br /&gt;
(Session.ActiveModelTypeIsSheet() and ActiveModel.Name=&amp;quot;BorderSheet&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
But I do not know of any way for a named expression to loop through all the models in a file. You may have to write a custom vba to run the named expression on each model.&lt;br /&gt;
&lt;br /&gt;
HTH,&lt;br /&gt;
Gerald Piotrowski&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>