<?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>MX - Centreline between 2 strings</title><link>https://communities.bentley.com/products/road___site_design/f/geopak-inroads-mx-openroads-forum/110274/mx---centreline-between-2-strings</link><description>Hi all, 
 MX V8i SS3 
 Does anyone have any code to use in an input file to create a centreline between 2 strings? 
 When using a journal file to record actions from the &amp;#39; Design&amp;gt;Design a string&amp;gt;Centreline between 2 strings &amp;#39; option, the information produced</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: MX - Centreline between 2 strings</title><link>https://communities.bentley.com/thread/336176?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 11:05:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7ea49f66-ac22-49d2-8064-4d8c88814689</guid><dc:creator>Adrian McBain</dc:creator><description>Si,&lt;br /&gt;
&lt;br /&gt;
You beat me to it, it works fine with a barrier with level top. I was going to ask what about 2 lane lines with different heights for forward visibility. I&amp;#39;ll now use the null/zero method in my inputs.&lt;br /&gt;
&lt;br /&gt;
Thanks very much for your help, much appreciated.&lt;br /&gt;
&lt;br /&gt;
Ade.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MX - Centreline between 2 strings</title><link>https://communities.bentley.com/thread/336173?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 10:57:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d97b2249-83ff-4070-bbe5-9fb6675684e5</guid><dc:creator>Simon Pegg</dc:creator><description>Ade&lt;br /&gt;
&lt;br /&gt;
Just to add to this. This of course  works if the two original strings are at the same level. If they are not, you can create two dummy strings with either null or zero levels and run this code on them, and then add levels to it as you wish.&lt;br /&gt;
&lt;br /&gt;
Sorry I didn&amp;#39;t mention this earlier.&lt;br /&gt;
&lt;br /&gt;
Si&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MX - Centreline between 2 strings</title><link>https://communities.bentley.com/thread/336148?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 09:32:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5bde16ac-bee2-4387-ba23-47eb40ff417d</guid><dc:creator>Simon Pegg</dc:creator><description>Ade&lt;br /&gt;
&lt;br /&gt;
OK Try this code. You&amp;#39;ll obviously have to change model and string names to suit.&lt;br /&gt;
&lt;br /&gt;
DESIGN,MX TUTORIAL DESIGN&lt;br /&gt;
017,VOFF&lt;br /&gt;
103,CE10,3=CENT&lt;br /&gt;
105,2=CE10,4=0.,7=-0.02,10=-0.02&lt;br /&gt;
105,2=CE1I,4=0.,7=0.02,10=0.02&lt;br /&gt;
999&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What I&amp;#39;m using is Intersection of two slopes, using a string and a slope.&lt;br /&gt;
&lt;br /&gt;
If you pick the two strings you want the one to be between and give them the same but opposite direction slopes (i.e. one up and one down) it will design a string exactly between the other two. &lt;br /&gt;
You can do it through the GUI too, and it Journals fine, that&amp;#39;s how I did the above.&lt;br /&gt;
Use&lt;br /&gt;
Design&amp;gt;Design a String&amp;gt;Intersection of Two slopes.&lt;br /&gt;
&lt;br /&gt;
Theres also an option of applying a vertical offset too, (Field4 =0 in my case).&lt;br /&gt;
&lt;br /&gt;
Let me know if this is what you are looking for.&lt;br /&gt;
&lt;br /&gt;
Si&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MX - Centreline between 2 strings</title><link>https://communities.bentley.com/thread/336144?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 09:12:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a4bbac4a-f816-45f0-9f25-47c2301d8894</guid><dc:creator>Adrian McBain</dc:creator><description>Hi Simon,&lt;br /&gt;
&lt;br /&gt;
Thanks for getting back so promptly.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve got a concrete barrier of varying widths along a scheme of which I would just like to create a string straight down the middle based on the top strings, 3d preferably. It doesn&amp;#39;t have to be a master string, as I could always convert it later if need be. I might add that there is an adjacent master string which can be used as a reference.&lt;br /&gt;
&lt;br /&gt;
I could create it manually using varying offsets from one of the edge strings but could be time consuming along 20-30km. If I can automate this process, would be a bonus.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Adrian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MX - Centreline between 2 strings</title><link>https://communities.bentley.com/thread/336140?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 08:58:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:88023cf9-b919-4bb9-80b7-df6b737f466b</guid><dc:creator>Simon Pegg</dc:creator><description>Hi Ade&lt;br /&gt;
&lt;br /&gt;
Can you just identify exactly what you want ? Do you need a 3d string which is exactly between two other strings ? Or do you need a Master String ?&lt;br /&gt;
Its something that can be done fairly easily. I&amp;#39;m surprised that the Journal file doesn&amp;#39;t record the design options from the GUI, I&amp;#39;ll look in to that. But if you can tell me exactly what you need, I&amp;#39;ll get some linemode code which does what you need.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
Simon Pegg B.Eng (Hons)  I.Eng &lt;br /&gt;
Bentley Product Advantage Group&lt;br /&gt;
Civil Support Manager &lt;br /&gt;
Mining Support Manager&lt;br /&gt;
SUE /SUDA Support Manager&lt;br /&gt;
B E N T L E Y    S Y S T E M S &lt;br /&gt;
&lt;br /&gt;
BE Productive BE Involved BE Smart&lt;br /&gt;
&lt;br /&gt;
For Support Please Try BE Communities :&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://communities.bentley.com/products/default.aspx"&gt;communities.bentley.com/.../default.aspx&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>