MX - Centreline between 2 strings

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 'Design>Design a string>Centreline between 2 strings' option, the information produced is lacking to run back in from an input file.

Thanks in advance.

Regards,

Ade.

Parents
  • Hi Ade

    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 ?
    Its something that can be done fairly easily. I'm surprised that the Journal file doesn't record the design options from the GUI, I'll look in to that. But if you can tell me exactly what you need, I'll get some linemode code which does what you need.

    Regards

    Simon Pegg B.Eng (Hons) I.Eng
    Bentley Product Advantage Group
    Civil Support Manager
    Mining Support Manager
    SUE /SUDA Support Manager
    B E N T L E Y S Y S T E M S

    BE Productive BE Involved BE Smart

    For Support Please Try BE Communities :

    communities.bentley.com/.../default.aspx



  • Hi Simon,

    Thanks for getting back so promptly.

    I'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'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.

    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.

    Regards,

    Adrian.
  • Ade

    OK Try this code. You'll obviously have to change model and string names to suit.

    DESIGN,MX TUTORIAL DESIGN
    017,VOFF
    103,CE10,3=CENT
    105,2=CE10,4=0.,7=-0.02,10=-0.02
    105,2=CE1I,4=0.,7=0.02,10=0.02
    999


    What I'm using is Intersection of two slopes, using a string and a slope.

    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.
    You can do it through the GUI too, and it Journals fine, that's how I did the above.
    Use
    Design>Design a String>Intersection of Two slopes.

    Theres also an option of applying a vertical offset too, (Field4 =0 in my case).

    Let me know if this is what you are looking for.

    Si



  • Ade

    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.

    Sorry I didn't mention this earlier.

    Si



  • Si,

    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'll now use the null/zero method in my inputs.

    Thanks very much for your help, much appreciated.

    Ade.

    Answer Verified By: Adrian McBain 

Reply Children
No Data