<?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>Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/116347/tool-to-create-centerlines-piperuns</link><description>Hi. Are there any tool inside Microstation CE that can automaticly creat centerlines for existing cylinders and bends? Idealy for large selection sets, and for different types of cylinders/bends object types. 
 Regards 
 Helge</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/369684?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 10:01:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:625d0ea8-06e5-44d1-9bbe-edad860573f1</guid><dc:creator>helgeh</dc:creator><description>Thank you for the information Jan. Its good to know it can be done, but as you said might require more effort to get the torus part working.&lt;br /&gt;
Regards&lt;br /&gt;
Helge&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/369062?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 07:02:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:87b1c86b-b7fc-4ecd-bb99-7173e490596d</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi helgeh,&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]would IT be possible to create someting that van extract centerlines from plain cylinder and toruses that are connected together ( such AS a pipe run etc)[/quote]&lt;/p&gt;
&lt;p&gt;Without studying former discussion, if talking about mentioned cylinder and torus, it would be possible. The main issue, that defines how complex such utility would be and if VBA can be used or C/C++ is required, is what element types are used to create pipes.&lt;/p&gt;
&lt;p&gt;E.g. for the cylinder the code is quite simple, because all required data are available through VBA API:&lt;/p&gt;
&lt;pre class="brush: vb; fontsize: 100; first-line: 1; "&gt;&amp;#39; Go through active model and create centerlines of all cones
Public Sub CreateCenterlinesFromCones()
    Dim esc As New ElementScanCriteria
    esc.ExcludeAllTypes
    esc.IncludeType msdElementTypeCone
    
    Dim ee As ElementEnumerator
    Set ee = ActiveModelReference.Scan(esc)
    
    ProcessElementEnumerator ee
End Sub

Private Sub ProcessElementEnumerator(ee As ElementEnumerator)
    Do While ee.MoveNext
        ExtractCenterlineFromCone ee.Current.AsConeElement
    Loop
End Sub

Private Sub ExtractCenterlineFromCone(cone As ConeElement)
    Dim vertices(1 To 2) As Point3d
    vertices(1) = cone.BaseCenterPoint
    vertices(2) = cone.TopCenterPoint
    
    Dim centerline As LineElement
    Set centerline = CreateLineElement1(Nothing, vertices)
    
    ActiveModelReference.AddElement centerline
End Sub
&lt;/pre&gt;
&lt;p&gt;But for the torus, which for a user is quite similar object, the situation is very different, because the torus is not &amp;quot;torus object&amp;quot;, but general solid. It&amp;#39;s necessary to go inside the object, to find a proper geometry and to analyse how the centerline should be. Without any testing I assume it can still done using VBA, but the code will be more complex.&lt;/p&gt;
&lt;p&gt;The same analysis has to be done for every object (solid, smart solid etc.) that will be used to create the pipe. &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: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/368993?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 16:56:55 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:694bc98d-eb00-4196-a5fd-062ebe0531e2</guid><dc:creator>helgeh</dc:creator><description>Hi. If we forget about mesh primitives, would IT be possible to create someting that van extract centerlines from plain cylinder and toruses that are connected together ( such AS a pipe run etc)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357996?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 05:35:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1a1200c0-99f9-495d-9357-4abfb0664465</guid><dc:creator>helgeh</dc:creator><description>Hi Jon,&lt;br /&gt;
&lt;br /&gt;
helgeh&lt;br /&gt;
Does that mean its not possible to extract anything from this dgn file&lt;br /&gt;
&lt;br /&gt;
All I can find in your file are shapes.  Each pipe, for example, is made up of multiple unconnected shapes that form a facsimile of a pipe.&lt;br /&gt;
&lt;br /&gt;
helgeh&lt;br /&gt;
Yes, this is after i did this, as suggested by Pascal: 1) Drop mesh elements to shapes using the &amp;quot;Drop Element&amp;quot; tool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
helgeh&lt;br /&gt;
What is the requirements for the pipe extraction tool to work&lt;br /&gt;
&lt;br /&gt;
I can&amp;#39;t see any points.  Perhaps Descartes can see more than I with plain old MicroStation.&lt;br /&gt;
&lt;br /&gt;
helgeh&lt;br /&gt;
I was not aloved to attache the POD file for some reason, so i attaced the txt file wich can be used to create a POD file. See point 6) in Pascals suggestion list. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
helgeh&lt;br /&gt;
Would i need some points also between the 2 ends of a single cylinder?&lt;br /&gt;
&lt;br /&gt;
The problem is that they are not cylinders: just a collection of shapes that look like a cylinder.&lt;br /&gt;
&lt;br /&gt;
Okay. My remaining unanswered question was if there are any way to extract enough points to make this work. Im guessing i also would need points wraped around the surfaces with some minimum density ( to make it look like a pointcloud of a pipe ) to make this pipe extraction tool in descartes work.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Helge&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357743?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2016 16:43:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8b18fda2-5ce7-404c-8a75-cdb2cdf37cf4</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]Does that mean its not possible to extract anything from this dgn file[/quote]&lt;/p&gt;
&lt;p&gt;All I can find in your file are shapes.&amp;nbsp; Each pipe, for example, is made up of multiple unconnected shapes that form a facsimile of a pipe.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]What is the requirements for the pipe extraction tool to work[/quote]&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see any points.&amp;nbsp; Perhaps Descartes can see more than I with plain old MicroStation.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]Would i need some points also between the 2 ends of a single cylinder?[/quote]&lt;/p&gt;
&lt;p&gt;The problem is that they are not cylinders: just a collection of shapes that look like a cylinder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357738?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2016 16:08:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:4b0d163f-3449-423b-9d62-b9ae1480f947</guid><dc:creator>helgeh</dc:creator><description>Hi Pascal.&lt;br /&gt;
Okay. Does that mean its not possible to extract anything from this dgn file, or do i need to change some setting to extract more points. What is the requirements for the pipe extraction tool to work, would i need some points also between the 2 ends of a single cylinder, or just higher density of points at the 2 ends?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357698?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2016 14:28:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d6d47a1a-c86c-4cff-88e3-48f12c393089</guid><dc:creator>Pascal Cloutier</dc:creator><description>I looked at your data, unfortunately, there is not enough points for the tool to find the cylinders.&lt;br /&gt;
&lt;br /&gt;
Pascal&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357568?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 21:30:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b874102a-a1f4-4fdf-94dc-4531fe042cab</guid><dc:creator>helgeh</dc:creator><description>&lt;p&gt;And here is the txt file&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/273/1440.prikkerfratrapp.txt"&gt;communities.bentley.com/.../1440.prikkerfratrapp.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357567?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 21:28:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9725311a-8034-4f83-9f80-2a09eaf9367e</guid><dc:creator>helgeh</dc:creator><description>&lt;p&gt;Hi Pascal,&lt;/p&gt;
&lt;p&gt;Thank you very much for the tip. I think I was able to follow the steps,&amp;nbsp;but do have some problems&amp;nbsp;extracting the centerlines (7). First of all I have not used Descartes much so I might be using some wrong settings on the &amp;quot;fit cylinder&amp;quot; tool as I was not able to extract much from the few points in the POD file. I see i have only outer diameter end points in the POD i created, is that enough points to be able to extract the centerlines? ( or solids with bends ) Are there any other settings that can create points everywhere on the surface maybe?&lt;/p&gt;
&lt;p&gt;I might have attached the file i was trying to extract if you want to have a look&amp;nbsp;( if i have done this correctly)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/273/99_2D00_stair_2D00_01.dgn"&gt;communities.bentley.com/.../99_2D00_stair_2D00_01.dgn&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357498?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 13:55:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:89320228-bdfb-42ef-a96a-ebed03036039</guid><dc:creator>Pascal Cloutier</dc:creator><description>Since you are using Descartes, you could try the following:&lt;br /&gt;
&lt;br /&gt;
1) Drop mesh elements to shapes using the &amp;quot;Drop Element&amp;quot; tool.&lt;br /&gt;
2) Select the shapes.&lt;br /&gt;
3) Use the &amp;quot;Extract Points from Curve&amp;quot; tool to extract points from the shapes with following settings:&lt;br /&gt;
-Location(s) Input By = Node Points&lt;br /&gt;
-Compute Following Attributes = Points&lt;br /&gt;
4) Use data cleanup utility to delete duplicate points at each vertex. &lt;br /&gt;
5) Use the &amp;quot;Export Coordinates&amp;quot; tool to create a text file containing the point&amp;#39;s coordinates.&lt;br /&gt;
6) convert the text file to POD.&lt;br /&gt;
7) Use Descartes&amp;#39; &amp;quot;Fit Cylinder&amp;quot; tool to extract the centerline of your pipes.&lt;br /&gt;
&lt;br /&gt;
HTH,&lt;br /&gt;
Pascal&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357465?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 11:10:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:42b4dbc8-7192-43c5-8da7-adace2214f82</guid><dc:creator>helgeh</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Jon Summers&amp;quot;]&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;helgeh&lt;/div&gt;
&lt;div class="quote-content"&gt;The most problematic ones are those who translates in to mesh objects...&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ve just raised the complexity of the task by an order of magnitude!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;[/quote]Ha ha, that might be correct. I thought i would metion the worst exsample i could think of.&amp;nbsp;It should be said that the &amp;quot;pipes&amp;quot; always comes in as single primitives/parts. So its not one big mesh but one bend becomes one mesh object etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357457?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 10:21:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:63d19604-2885-46ee-a24a-7d762cdeca6f</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]The most problematic ones are those who translates in to mesh objects...[/quote]&lt;/p&gt;
&lt;p&gt;You&amp;#39;ve just raised the complexity of the task by an order of magnitude!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357448?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 09:04:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d2feac46-df9e-44cd-84d7-245b358403a0</guid><dc:creator>helgeh</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Jon Summers&amp;quot;]&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;helgeh&lt;/div&gt;
&lt;div class="quote-content"&gt;...always get these cad models coming from different cad softwares...&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you provide a couple of &lt;em&gt;small&lt;/em&gt; DGN files, from different sources, that illustrate the sort of pipe runs you want to analyse?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;[/quote]Yes, but need a&amp;nbsp;day or two&amp;nbsp;to find the time to do that. The most problematic ones are those who translates in to mesh objects. Idealy i would need to recreate them as solids ( for my use ), and to do that i could use the centerlines (smartlines) and just extrude them with the correct diameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357445?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:40:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:56d79061-e88d-4b2b-b98c-d02d7ba14153</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;]...always get these cad models coming from different cad softwares...[/quote]&lt;/p&gt;
&lt;p&gt;Can you provide a couple of &lt;em&gt;small&lt;/em&gt; DGN files, from different sources, that illustrate the sort of pipe runs you want to analyse?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357443?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:17:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:922ca9af-4db1-47ab-9fff-ab260361b357</guid><dc:creator>Dervalcanny</dc:creator><description>Hello,&lt;br /&gt;
There is a programming forum where MDL creation is discussed that may help:&lt;br /&gt;
&lt;a href="http://communities.bentley.com/products/programming/microstation_programming/"&gt;communities.bentley.com/.../microstation_programming&lt;/a&gt;&lt;br /&gt;
It may also be worth posting your query on the Plant forum to see if this functionality exists:&lt;br /&gt;
&lt;a href="http://communities.bentley.com/products/plant/design___engineering"&gt;communities.bentley.com/.../design___engineering&lt;/a&gt;&lt;br /&gt;
Regards&lt;br /&gt;
Derval Canny.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357435?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 07:25:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0ec57c81-9b56-4a64-ad25-40c2b467d9f7</guid><dc:creator>helgeh</dc:creator><description>Hi,&lt;br /&gt;
Yes i am. Microstation with descares on top. I have thought about it, but dont realy know if that kind of tools are in forexsamle openplant eighter. The thing is am not drawving the pipes from scratch, but more or less always get these cad models coming from different cad softwares ( pdms, naviswrks fbx etc. ) that i need to modify in different was.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357429?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 07:01:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:aa70738b-4928-48a9-9866-911789795d1b</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;helgeh&amp;quot;] I see a lot of potential for such a tool...[/quote]&lt;/p&gt;
&lt;p&gt;Are you using plain old MicroStation?&amp;nbsp; Have you considered one of the plant design apps.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357415?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 04:39:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:99288d47-3733-4d18-89ef-e8bab4aacbf7</guid><dc:creator>helgeh</dc:creator><description>Okay, i just thought i would ask as i could not find anything after looking for a while. But i realy think thats a pitty as i see alot of potensial for such a tool. i guess the only realistic option would be to get a programer to create me such a tool.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tool to create centerlines  piperuns</title><link>https://communities.bentley.com/thread/357379?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 21:20:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b2e41def-6ce6-4bf2-9f8e-38016605b9df</guid><dc:creator>DavidG</dc:creator><description>Not that I&amp;#39;m aware of.  I&amp;#39;d be using it if I knew it was there.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>