<?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>[CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element</link><description>Hello, 
 could someone show me (with a code example) how to perform, in c #, the Split operation on a Shape element? 
 Thanks for your help, regards 
 Salvio Montella</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/667246?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 07:52:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a02b33fc-ae75-4417-9870-c1f82829de5a</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="34909" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/667156"]Too split a polygon[/quote]
&lt;p&gt;This is the Programming Forum.&amp;nbsp; You have described the steps to split a polygon using MicroStation&amp;#39;s built-in tools.&amp;nbsp; How does that help the OP, who wants to write C# code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/667156?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 18:34:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5c2a5204-3b69-44e6-ba70-3d88a725b9df</guid><dc:creator>willmartinpe</dc:creator><description>&lt;p&gt;Too split a polygon:&lt;/p&gt;
&lt;p&gt;Draw the line splitter crossing the edges&lt;/p&gt;
&lt;p&gt;Zoom out until you can see the entire polygon.&lt;/p&gt;
&lt;p&gt;Create a region in one part of the proposed new polygon checking &amp;#39;Keep Original&amp;#39;.&lt;/p&gt;
&lt;p&gt;Create a region in the other part of the proposed polygon unchecking &amp;#39;Keep Original&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/577227?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:20:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5aa3ebad-5812-4b5a-af72-96480e0dbfb5</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Salvatore,&lt;/p&gt;
[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/577206"]The versions they use are as follows[/quote]
&lt;p&gt;it&amp;#39;s not very important when NET only is used, but it&amp;#39;s incorrect (not supported option) to use different version of MicroStation and different version of SDK together! Why to do so dirty development thing?&lt;/p&gt;
[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/577206"]The Split operation (required) should consist[/quote]
&lt;p&gt;Sorry, but it tells not too much and nothing about how the shape should be split. As &lt;a href="/members/de0601d9_2d00_ca2e_2d00_4005_2d00_a7b3_2d00_982abaee9aeb"&gt;Jon Summers&lt;/a&gt; wrote: What is &amp;quot;a sort of matrix&amp;quot;?&lt;/p&gt;
[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/577206"]The Split operation (required) should consist of selecting a shape, applying a sort of matrix,&lt;br /&gt;and replicate the selected object for how many elements are in the array.[/quote]
&lt;p&gt;It sounds like quite complex code, so it seems to be more like &amp;quot;write some code for me&amp;quot;, especially when it very different from your original question that was &amp;quot;how to split a shape&amp;quot;, whereas now it &amp;quot;select element, make calculations, save changes to design file&amp;quot;, moreover applied to an array (which is also not quite clear how it should work).&lt;/p&gt;
&lt;p&gt;I recommend to start with MicroStation SDK examples to learn how to implement element location (modification) class and to implement a minimum set of features (to be able to locate shape and something like to remove the shape and place a circle in a middle of the shape). Until it works, how exactly the split should be implemented probably makes no sense.&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: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/577210?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 08:30:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a1ce7744-1ad1-45fb-8dc3-84aefe6de329</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/577206"]The Split operation (required) should consist of selecting a shape, applying a sort of matrix,&lt;br /&gt;and replicate the selected object for how many elements are in the array[/quote]
&lt;p&gt;Well, that&amp;#39;s one of the more imaginative specifications I have seen!&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What is &amp;#39;a sort of matrix&amp;#39;?&lt;/li&gt;
&lt;li&gt;How does a matrix help to split a shape?&lt;/li&gt;
&lt;/ol&gt;
[quote userid="1009364" url="~/products/programming/microstation_programming/f/microstation-programming---forum/194594/connect-edition-how-split-a-shape-element/577206"]replicate the selected object for how many elements are in the array[/quote]
&lt;ol start="3"&gt;
&lt;li&gt;What is the &amp;#39;selected object&amp;#39;?&lt;/li&gt;
&lt;li&gt;Where did &amp;#39;array&amp;#39; come from?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/577206?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 08:24:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cd17ed9d-6e0c-4144-a5cc-0480ab7a82d1</guid><dc:creator>salvatore montella</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The versions they use are as follows&lt;br /&gt;Microstation : ms10120040en_updt12&lt;br /&gt;SDK : mssdk10130048en&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;br /&gt;In the project I use both COM / Interop and &amp;quot;new NET&amp;quot; so any solution would be fine.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;br /&gt;The Split operation (required) should consist of selecting a shape, applying a sort of matrix,&lt;br /&gt;and replicate the selected object for how many elements are in the array.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;br /&gt;regards&lt;/p&gt;
&lt;p&gt;Salvio Montella&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [CONNECT EDITION] How Split a Shape Element</title><link>https://communities.bentley.com/thread/577188?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 07:37:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:09701025-1e7d-470f-93df-c0a92906c0b3</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Salvio,&lt;/p&gt;
&lt;p&gt;there are several problems in your question:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What version do you use? To say [CONNECT Edition] is simply not enough, there have been 15 versions of MicroStation CE release so far. And please, do not waste the space, to use e.g. [MStn CE U13 C#] as discussed in this &lt;a href="/products/programming/microstation_programming/f/microstation-programming---forum/77384/please-read-microstation-programming-forum-best-practices" rel="noopener noreferrer" target="_blank"&gt;forum best practices&lt;/a&gt; provides more information using less space.&lt;/li&gt;
&lt;li&gt;What API do you use? COM/Interop or &amp;quot;new NET&amp;quot;?&lt;/li&gt;
&lt;li&gt;What &amp;quot;split&amp;quot; means to you? Without further details (requirements or limitations) defined by you the issue cannot be discussed, because on this general level, there is infinite ways how a shape can be split. Should the shape by split to triangles, to defined number of smaller pieces...?&lt;br /&gt;At a code level, it&amp;#39;s about to create new shapes, following defined algorithm, in memory, and in one transaction to delete old one and to add the new ones to a model.&lt;/li&gt;
&lt;/ul&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></channel></rss>