<?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/"><channel><title>Stephen Holmes's Activities</title><link>https://communities.bentley.com/members/40e1983e_2d00_f12d_2d00_4a20_2d00_bd6a_2d00_6ede6530560e</link><description>Stephen Holmes's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Label Tool cell list too long</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/213778/label-tool-cell-list-too-long</link><pubDate>Wed, 12 May 2021 10:48:50 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8ca3c2b9-3089-495f-bb3d-afe3e941e8ee</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;MicroStation CONNECT Update 8&lt;/p&gt;
&lt;p&gt;Does the Label tool have it&amp;#39;s own variable to limit the cell libraries that it lists available cells from?&lt;/p&gt;
&lt;p&gt;Currently it appears to use MS_CELLLIST which in a lot of companies will have lots of cell libraries listed for different purposes.&lt;/p&gt;
&lt;p&gt;If not already, can this be updated to have it&amp;#39;s own dedicated variable for either cell list for dgnlib list.&lt;/p&gt;
&lt;p&gt;e.g. MS_LABELCELLLIST= or MS_DGNLIBLIST_LABELS=&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If MS_CELLLIST contains lots of cell libraries and lots of cells, then the label tool when selecting the drop down will crash MicroStation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# .Net MSTN U16 - Reference File Treat as Element property</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/221551/c-net-mstn-u16---reference-file-treat-as-element-property</link><pubDate>Mon, 01 Nov 2021 16:04:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:247de7f1-0851-4656-b964-32e3a5de7511</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Using MicroStation CONNECT U16&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C# .NET trying to check and set the reference file property &amp;quot;Treat As Element&amp;quot; tick option.&lt;/p&gt;
&lt;p&gt;I can see DgnAttachment has Locate, Snap properties but cannot see the &amp;quot;Treat As Element&amp;quot;&lt;/p&gt;
&lt;p&gt;Is this Treat as Element option accessible in C# .Net?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any help much appreciated&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stephen Holmes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# MSCE Update 13 Set named model to be the active model in the current MicroStation session</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/192068/c-msce-update-13-set-named-model-to-be-the-active-model-in-the-current-microstation-session</link><pubDate>Thu, 06 Feb 2020 00:11:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8f8804fa-8fa8-426d-a711-4d005855952c</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;C# Microstation CONNECT Update 13&lt;/p&gt;
&lt;p&gt;I have a .dgn file loaded in the current session of MicroStation which contains a design model named &amp;quot;default&amp;quot; and a sheet model named &amp;quot;Sheet1&amp;quot;.&lt;/p&gt;
&lt;p&gt;How can I set the active model programmatically by the name &amp;quot;Sheet1&amp;quot; so that it is the currently active model for the user in the current MicroStation session?&lt;/p&gt;
&lt;p&gt;I can do it crudely by sending a key-in command to activate the model, but was hoping I could do this more directly with .NET.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>What does this mean?</title><link>https://communities.bentley.com/communities/other_communities/licensing_cloud_and_web_services/f/forum/217170/what-does-this-mean</link><pubDate>Mon, 26 Jul 2021 08:05:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:182e08f1-145a-499d-b7df-0c8f5b265811</guid><dc:creator>stuartw</dc:creator><description>&lt;p&gt;Trying to log in and getting:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343368/pastedimage1627286808053v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# MS16 .NET Attach and edit item types to a model</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/217207/c-ms16-net-attach-and-edit-item-types-to-a-model</link><pubDate>Mon, 26 Jul 2021 17:52:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:63f820a7-be89-4eb8-b8ba-afc3ef7512ba</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Hello All&lt;/p&gt;
&lt;p&gt;Using C# I can create item types and attach them to elements, but cannot see how to attach an set of ItemType properties to a dgn model?&lt;/p&gt;
&lt;p&gt;I can get to the model as a DgnModel and ModelInfo&lt;/p&gt;
&lt;p&gt;I can get to my ItemTypeLibrary and ItemType&lt;/p&gt;
&lt;p&gt;I tried CustomItemHost but this is only for elements&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any pointers on how to attach or access ItemTypes that are model properties would be appreciated  &lt;/p&gt;
&lt;p&gt;Thank you in advance...&lt;/p&gt;
&lt;p&gt;Stephen Holmes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# .NET MS Update 16  View Attributes for Markers</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/216346/c-net-ms-update-16-view-attributes-for-markers</link><pubDate>Wed, 07 Jul 2021 15:09:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d2f82c70-c1e4-464b-ba42-8c1bf7aaffbd</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Using C# .NET MicroStation Update 16&lt;/p&gt;
&lt;p&gt;I am looking to control the display of Markers in the View Attributes of each of the 8 views.&lt;/p&gt;
&lt;p&gt;Interop...Utilities.ComApp.ActiveDesignFile.Views[1].&amp;nbsp; &amp;nbsp;gives me access to Fill On, Text On etc but no the Markers On and their hierarchical structure for individual markers to control whether they are displayed or not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is control of markers visibility controlled through another interface other than the view interface or is it just missing given their relative newness ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question II</title><link>https://communities.bentley.com/achievements/cd3cd235-25c1-476e-bb88-33a5705ca45a</link><pubDate>Thu, 24 Jun 2021 03:01:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b9af6b2c-beb7-4778-ada4-b294318ce676</guid><dc:creator /><description>Ask 10 questions in a forum.</description></item><item><title>What If...</title><link>https://communities.bentley.com/achievements/431b6499-29c0-4b75-9a11-0f8ab01b8e9b</link><pubDate>Thu, 24 Jun 2021 12:16:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f09060d8-43b1-4a90-a267-58c76ddc1e80</guid><dc:creator /><description>Share an idea with the community</description></item><item><title>C# .NET MS Update 15 - How do you use an Item Type library that is in an attached dgn library when the definition is not in the active file?</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/209550/c-net-ms-update-15---how-do-you-use-an-item-type-library-that-is-in-an-attached-dgn-library-when-the-definition-is-not-in-the-active-file</link><pubDate>Tue, 09 Feb 2021 17:38:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6e7a9cc6-a950-41ee-9fd0-25af3369ca40</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Hello All&lt;/p&gt;
&lt;p&gt;Using C# .NET with MicroStation Update 15&lt;/p&gt;
&lt;p&gt;I can control Item Type Libraries if they are in the active file, but how do you copy the definition through if the definition is in an attached DGN Library into the active file.&lt;/p&gt;
&lt;p&gt;Can&amp;#39;t see an obvious method on the ItemTypeLibrary that allows you to find in attached library and use?&lt;/p&gt;
&lt;p&gt;If I manually use an ItemType library it is copied into the active file on first use.. this does not appear to be the case if done programmatically&lt;/p&gt;
&lt;p&gt;I was looking at .CloneForFile method&amp;nbsp; to just pick up the attached dgnlibrary schemas and copy into the active file - it this the right way to go?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many Thanks&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Let me Help You</title><link>https://communities.bentley.com/achievements/687f4b6d-e18a-4e55-836c-49926ca2c9d9</link><pubDate>Thu, 04 Feb 2021 13:24:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d5a67e14-7123-4744-8502-1bd6ef813764</guid><dc:creator /><description>Answer a question that is verified as helpful or correct.</description></item><item><title>C# .NET MS Update 15 How to change and Item Type Property that has a pick list associated with it?</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/209378/c-net-ms-update-15-how-to-change-and-item-type-property-that-has-a-pick-list-associated-with-it</link><pubDate>Thu, 04 Feb 2021 16:04:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:700584be-fb1a-4750-9f14-7ffd6b9d89c8</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Hello All&lt;/p&gt;
&lt;p&gt;I have an Item Type attached to an element in a model&lt;/p&gt;
&lt;p&gt;One of the Properties in the Item Type is a string that has a pick list to choose the value with.&lt;/p&gt;
&lt;p&gt;With C#.Net how do I programmatically change the value of the property attached to the element to a different value?&lt;/p&gt;
&lt;p&gt;I am using the following code which will update a string property value, but will not update a value if the property has a PickList associated to it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;using Bentley.DgnPlatformNET;
using Bentley.DgnPlatformNET.Elements;
using Bentley.DgnPlatformNET.DgnEC;

/// &amp;lt;summary&amp;gt;Edit Property Double value on Element&amp;lt;/summary&amp;gt;
        public bool EditPropertyStringValueOnElement(Element element, string itemLibraryName, string itemTypeName, string propertyName, string value)
        {
            ItemTypeLibrary itemTypeLibrary = ItemTypeLibrary.FindByName(itemLibraryName, m_ActiveDgnFile);
            if (itemTypeLibrary != null)
            {
                ItemType itemType = itemTypeLibrary.GetItemTypeByName(itemTypeName);
                if (itemType != null)
                {
                    CustomItemHost host = new CustomItemHost(element, false);
                    if (host != null) { 
                        IDgnECInstance item = host.GetCustomItem(itemLibraryName, itemTypeName);
                        if (item != null)
                        {
                            item[propertyName].StringValue = value;
                            item.WriteChanges();
                            return true;
                        }
                    }
                }
            }
            return false;
        }&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any ideas how to update a property value when a pick list is being used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# .NET MSCE 13 Intersection points between 2 known elements</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/197719/c-net-msce-13-intersection-points-between-2-known-elements</link><pubDate>Sun, 24 May 2020 16:08:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d17274b7-600f-42fa-a20f-c7c6870622c8</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;&lt;img alt="Line Intersection Examples" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/343173/Intersection.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Trying to find a .NET method to get the physical intersection points between a linear element and another element (linear or shape) in 2D (3 different examples shown above)&lt;/p&gt;
&lt;p&gt;I can do it with the Interop with &lt;em&gt;element&lt;/em&gt;.&lt;span style="background-color:#ffffff;"&gt;GetIntersectionPointsOnIntersector&lt;/span&gt; but was searching for a .NET non-interop method.&lt;br /&gt;Any suggestions greatfully received.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CONNECT C# U12] expand config variable strings</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/196434/connect-c-u12-expand-config-variable-strings</link><pubDate>Wed, 29 Apr 2020 18:48:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:de0d65ae-7cd4-4451-adc0-186f2b1b5e81</guid><dc:creator>Wim - 4Dselect</dc:creator><description>&lt;p&gt;Good evening,&lt;/p&gt;
&lt;p&gt;I am looking for a method to expand a string of the form &amp;quot;$(MS_PROJECTDIR)testfolder\$(USERNAME).dgnlib&amp;quot; to its full extent.&lt;/p&gt;
&lt;p&gt;In VBA there is the ExpandConfigurationVariable function to do that, but I can&amp;#39;t find its counterpart in C#.&lt;/p&gt;
&lt;p&gt;Can anyone point me in the right direction?&lt;/p&gt;
&lt;p&gt;Kind regards.&lt;/p&gt;
&lt;p&gt;Wim A.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>[CE UPDATE 12 C++] DEVEV command unknown</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/177428/ce-update-12-c-devev-command-unknown</link><pubDate>Sun, 31 Mar 2019 15:56:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3c4ade12-59ae-40b5-85de-9c38883f6b90</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Just installed VS2017 Pro and CE Update 12 SDK , BuildAllExamples worked fine (couple of missing includes in 2 examples) but otherwise OK, however key in DEVENV and says its an unknown command? Any ideas...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>C# MSCE Update 13 Bentley.DgnPlatformNET.DgnPrimitiveTool</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/191882/c-msce-update-13-bentley-dgnplatformnet-dgnprimitivetool</link><pubDate>Sun, 02 Feb 2020 11:39:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:42a589fd-7f4f-4a8d-89eb-914b1f944cbc</guid><dc:creator>Stephen Holmes</dc:creator><description>&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;Using C# in MicroStation CONNECT Update13&lt;/p&gt;
&lt;p&gt;Just a quick question:&lt;/p&gt;
&lt;p&gt;The .&lt;span style="background-color:#ffffff;"&gt;DgnPrimitiveTool does not appear to be part of the DgnPlatformNet.dll reference.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;It works when I reference Bentley.DgnDisplayNet.dll&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Is this the correct .dll to be referencing or should I be using another?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;And is there any documentation on the &lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;DgnDisplayNet&lt;/span&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;.dll and its classes?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Thank you in advance&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Stephen&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>