<?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>Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/221589/tags-do-not-hide-when-created-with-vba-in-connect-edition</link><description>I am trying to migrate from Microstation V8i to CONNECT Edition, and when I run my custom VBA blocks elements are drawn with all tags visible, even though both the tag configuration settings and t he VBA code both have the tags set to hidden. Is this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680324?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 14:29:14 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f865928c-0b2a-4211-9699-fe2d45df7176</guid><dc:creator>Carl Stanton</dc:creator><description>&lt;p&gt;This appears to work, thank you very much.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680261?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 10:39:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:79ceb397-b3d2-4980-a930-83bb8eefcaf5</guid><dc:creator>Artur Goldsweer</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;I can confirm this is an open Bug # 661690 with placing tags.&lt;br /&gt;The workaround would be to explicitly set .IsHidden = true after attaching the tag to an element.&lt;br /&gt;This could be such a code example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;
    Set oTag = element.AddTag(oTagdef) 
    oTag.IsHidden = True    &amp;#39; hide after adding tag
    oTag.Rewrite            &amp;#39; rewrite in dgn
    &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I hope this helps?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Artur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680042?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 17:14:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2ba9ca75-7fd7-458e-a9f8-c2eee29c3aa0</guid><dc:creator>Carl Stanton</dc:creator><description>&lt;p&gt;dgn file and an example VBA source code are attached. The relevant VBA function is also below.&amp;nbsp;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/INSERT_5F00_TRACK.mvba"&gt;communities.bentley.com/.../INSERT_5F00_TRACK.mvba&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;vba source code:&lt;/p&gt;
&lt;p&gt;Public Sub AddTagDefinitions(TagSetName As String)&lt;br /&gt; Dim oDefs As TagDefinitions&lt;br /&gt; &lt;br /&gt; Set oTagSet = oTagSets.Add(TagSetName)&lt;br /&gt; &amp;#39;Creating TagSets&lt;br /&gt; Set oDefs = oTagSet.TagDefinitions&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Set oTagDef = oTagSet.TagDefinitions.Add(&amp;quot;FUN_ID&amp;quot;, msdTagTypeCharacter)&lt;br /&gt; With oTagDef&lt;br /&gt; .IsHidden = True&lt;br /&gt; .IsConstant = False&lt;br /&gt; End With&lt;br /&gt; Set oTagDef = oDefs.Add(&amp;quot;ANGLE&amp;quot;, msdTagTypeCharacter)&lt;br /&gt; With oTagDef&lt;br /&gt; .IsHidden = True&lt;br /&gt; .IsConstant = False&lt;br /&gt; End With&lt;br /&gt; Set oTagDef = oDefs.Add(&amp;quot;TSI&amp;quot;, msdTagTypeCharacter)&lt;br /&gt; With oTagDef&lt;br /&gt; .IsHidden = True&lt;br /&gt; .IsConstant = False&lt;br /&gt; End With&lt;br /&gt; Set oTagDef = oDefs.Add(&amp;quot;MISC&amp;quot;, msdTagTypeCharacter)&lt;br /&gt; With oTagDef&lt;br /&gt; .IsHidden = True&lt;br /&gt; .IsConstant = False&lt;br /&gt; End With&lt;br /&gt;End Sub&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/ctec_5F00_cad.dgnlib"&gt;communities.bentley.com/.../ctec_5F00_cad.dgnlib&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680038?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 16:44:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:15d4c0a3-8a76-403f-8b05-00049b5111c4</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;You&amp;#39;re probably aware that Bentley Systems tell us that &lt;a title="MicroStation Help: Deprecated Features" href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v18-16-1/en/GUID-7CA6441C-45C5-4D9D-8C29-9727E4029DA3.html" rel="noopener noreferrer" target="_blank"&gt;tags are deprecated in MicroStation CONNECT&lt;/a&gt;.&amp;nbsp; However, many people, like yourself, use tags and have written code to handle tags.&amp;nbsp; They are unlikely to disappear from MicroStation in this decade.&lt;/p&gt;
&lt;p&gt;However, Bentley Systems would rather that we concentrate on new, shiny, features like &lt;a title="MicroStation Help: Comparing Text Field, Label, Note, Table, Report, Item, Item Type, and Item Sets" href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v18-16-1/en/GUID-0A5C6CFC-E9F6-4F0D-BE00-6F24BE05839F.html" rel="noopener noreferrer" target="_blank"&gt;Item Types&lt;/a&gt;.&amp;nbsp; I suspect that the developers don&amp;#39;t plan to put any emphasis on fixing bits of the tag API that don&amp;#39;t work, but I&amp;#39;ll be happy to read a statement to the contrary.&amp;nbsp;&lt;/p&gt;
[quote userid="1167984" url="~/products/programming/microstation_programming/f/microstation-programming---forum/221589/tags-do-not-hide-when-created-with-vba-in-connect-edition"]when I run my custom VBA blocks elements are drawn with all tags visible[/quote]
&lt;p&gt;Please provide some evidence...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A DGN file that includes your tag defs&lt;/li&gt;
&lt;li&gt;VBA function source code that creates tag elements&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680036?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 16:30:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:27f048a4-d7fc-4310-ba10-e4298db28174</guid><dc:creator>Carl Stanton</dc:creator><description>&lt;p&gt;Version 10.16.01.56&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tags do not hide when created with VBA in CONNECT Edition</title><link>https://communities.bentley.com/thread/680023?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 14:05:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:09e3a4c1-fdc0-4802-bbe6-70933cc04106</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1167984" url="~/products/microstation/f/microstation-forum/221589/tags-do-not-hide-when-created-with-vba-in-connect-edition"]VBA in CONNECT Edition[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What is the exact version no. (e.g. v10.x.y.z) of MicroStation that you are using? Use key-in &lt;code&gt;VERSION&lt;/code&gt; to see the version no. in the MicroStation Message Center, or &lt;em&gt;Help&amp;rarr;About MicroStation&lt;/em&gt; in the backstage.&lt;/p&gt;
&lt;p&gt;See this &lt;a title="MicroStation blog: MicroStation CONNECT Version: How to find it" href="/products/microstation/b/microstation_blog/posts/microstation-connect-version-how-to-find-it" rel="noopener noreferrer" target="_blank"&gt;blog that shows you how to obtain MicroStation&amp;#39;s version number&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is a &lt;a title="Be Communities: MicroStation Programming Forum" href="/products/programming/microstation_programming/f/microstation-programming---forum" rel="noopener noreferrer" target="_blank"&gt;Programming Forum&lt;/a&gt; that would be a better place to post your question about VBA.&amp;nbsp; You can move your post using the &lt;em&gt;More=&amp;gt;Move&lt;/em&gt; button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>