<?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>Microstation-how to create lines from coordinates point in excel</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel</link><description>Hi all, I have these x,y coordinates in excel which i wish to import into microstation and form lines from these coordinates. I know Autocad is able to do so, but is there anyway to do this in microstation ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Microstation-how to create lines from coordinates point in excel</title><link>https://communities.bentley.com/thread/671683?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:37:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b4036eeb-cd37-4937-bf01-fcb9372efac5</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1052975" url="~/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel"]I have these x,y coordinates in Excel which i wish to import into MicroStation and form lines from these coordinates[/quote]
&lt;p&gt;Post your question to the &lt;a title="MicroStation Forum" href="/products/microstation/f/microstation-forum" rel="noopener noreferrer" target="_blank"&gt;MicroStation Forum&lt;/a&gt;, and mark it for the attention of&amp;nbsp;&lt;a href="/members/b49f817f_2d00_d78d_2d00_4ee4_2d00_b314_2d00_c826a40c2d68"&gt;Lorys&lt;/a&gt;&amp;nbsp;who is an Excel&amp;nbsp;&lt;a title="Dictionary.com: Aficionado" href="https://www.dictionary.com/browse/aficionado" rel="noopener noreferrer" target="_blank"&gt;aficionado&lt;/a&gt;.&amp;nbsp; If you search that Forum you will find other questions similar to yours.&lt;/p&gt;
&lt;p&gt;As Jan describes, you can adjust your Excel worksheet to contain columns of X, Y coordinates and write those to a CSV file.&amp;nbsp; Use a text editor to add the commands that Jan mentions.&amp;nbsp; Then invoke the file as an &lt;a title="Wiki:  How to string keyins together or create keyin scripts" href="/products/microstation/w/askinga/389/how-to-string-keyins-together-or-create-keyin-scripts" rel="noopener noreferrer" target="_blank"&gt;@script&lt;/a&gt; (look for &lt;em&gt;Script Files&lt;/em&gt; just over half-way down that page) to create your DGN line elements.&lt;/p&gt;
[quote userid="1052975" url="~/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel"] I know Autocad is able to do so[/quote]
&lt;p&gt;For many years, AutoCAD has imitated MicroStation&amp;#39;s capabilities!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microstation-how to create lines from coordinates point in excel</title><link>https://communities.bentley.com/thread/671663?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 05:30:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3362d40d-7c0f-4376-9288-b84046ff62dc</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Vivian,&lt;/p&gt;
&lt;p&gt;because this is MicroStation Programming forum, do you ask how to import the coordinates using own code and you plant to write it, using e.g MicroStation VBA or C++?&lt;/p&gt;
&lt;p&gt;If you question is about using / existence of a user tool in MicroStation, without programming, I recommend to move your question to normal &lt;a href="/products/microstation/f/microstation-forum" rel="noopener noreferrer" target="_blank"&gt;MicroStation forum&lt;/a&gt;. To move existing discussion to another forum, use &lt;em&gt;More &amp;gt; Move&lt;/em&gt; tool, available under your original post. Please, do not ask again (duplicate the post), but move it.&lt;/p&gt;
&lt;p&gt;Also, please follow &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;the best practices&lt;/a&gt; and always specify exactly not only products, but also its version (e.g. using build number), because an answer can be different for current MicroStation CE Update 16 and old V8i (SELECTseries 1).&lt;/p&gt;
[quote userid="1052975" url="~/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel"]I have these x,y coordinates in excel which i wish to import into microstation[/quote]
&lt;p&gt;To import coordinates, you can use &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v18/en/ImportCoordinates.html" rel="noopener noreferrer" target="_blank"&gt;Import Coordinates&lt;/a&gt; tool from &lt;em&gt;XYZ Toolbox&lt;/em&gt;. It requires to export Excel into plain text file. The problem of this tool is it does not create line, but points, so the line must be created manually, which is not problem for a few short lines, but not suitable when the import should be done regularly.&lt;/p&gt;
[quote userid="1052975" url="~/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel"]and form lines from these coordinates[/quote]
&lt;p&gt;Alternative approach, allowing to create a line directly, is to use &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v18/en/GUID-53261E65-82A2-AEB9-983F-DF9A8ABC4BDE.html" rel="noopener noreferrer" target="_blank"&gt;key-in script&lt;/a&gt;. The key-in to enter a data point is &lt;strong&gt;xy=&amp;lt;x&amp;gt;,&amp;lt;y&amp;gt;[,&amp;lt;z&amp;gt;]&lt;/strong&gt;, e.g. &lt;strong&gt;xy=10.2, -6.12&lt;/strong&gt;. So the script, which can be also created easily from Excel file, should be something like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;place line
xy=10.2, 6.8
xy=12.4, 7.6&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When used, it starts MicroStation tool and enters all coordinates as data points.&lt;/p&gt;
[quote userid="1052975" url="~/products/programming/microstation_programming/f/microstation-programming---forum/219446/microstation-how-to-create-lines-from-coordinates-point-in-excel"]x,y coordinates in excel[/quote]
&lt;p&gt;From you Excel picture it looks like the format is wrong, because both x and y are in the same cell. At first, you should split the cell to have x and y in individual cells, which makes export to text file easier.&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></channel></rss>