Run-time Error 5

I am trying (with no success) to create a genio output of strings.  However, i only nead the string infomration between two points and when i try and select the two points/chainage/xy, an error appears.

 The error window displays the follwing:

Run-time error '5'

Invalid Procedure call or argument

 

Any thoughts on how to get around this problem?

Parents
  • Hirani

     I am assuming you are working through the GUI. The linemone commands below output the section of the master MC10 from chainage 100 to chainage 230, and the 3D string CE10 between points 15 and 74. The data is being written to the file 'output.txt'.

    Add the commands to a text file, save it as "XXX.inp", where XXX is a filename of your choice, and then input the file [ FILE > INPUT from the main menu]. The data will be in the current MX working folder.

    ASSIGN,OUTPUT.TXT,GENIO

    GENIO,PROPOSED ROAD
    081,MC10,5=100,8=230
    081,CE10,6=15,9=74
    999

    ASSIGN,,GENIO

    I hope this helps. To use a XY coorrdinate as either the start or end position, use both fields 5 and 6 (for start) and fields 8 and 9 (for end).

    Mark



  • Mark,

    That's worked a treat.  Many thanks for that.

    Out of curiosity, is there anywhere that defines how to write such input files, because i tried the help menu and the linemode reference but it wasnt of much use.

    Thanks again,

     

    Regards,

    Ashok

  • Ashok

    Another idea would be to create a new empty project, and run the file 'SIMP105.inp" [found in the folder "C:\Program Files\Bentley\MX V8i\MX\MFW\UK_tut"] - this does a complete project from the imput of survey data to as built model - all with linemode commands.

    1. Make sure the new project has 'Non-tangential alignments' unchecked. (Otherwise use the file 'Simp105 in NTA.inp')

    2. You have to give some models a PSS/FNS as it is running - that is as normal with new models.

    3. You will end up with a 16 page drawing, showing the state of the project at each step of the design process.

    By working through the file, and matching the results to each step of the process, I hope that you will find the linemode commands easy to follow :-)

    Mark



  • Dear Mark,

     I found the below very usfull and would like to thank you, but i want to ask two more questions:

    1. After input the below kind of Genio file, I could not retrive the aligmnet to be able to edit horizontal / vertical alignment (HC and VC).
    2. Is there is anyway to export a splited Halgn or Valgn for long alignment.
    3. I have a very long alignments here with many earthwork zones for slopes and criteria, is there is way to divid the earthwork strings to change certian zone (insert gap or import a part by the chainage corresponing to the master string?).
    4. is there is anyway to combine the alternative slopes with benches. 
    5. is there is anyway to export a line mode for the earthwork already created and log is lost.
    6. is there is anyway to create detailed mass haul (to show haulage distance and mass,..... etc.), I found somthing in the help but it is not so much detailed).

     

    Regards,

    Ahmed Hazem

     

     

  • Ahmed

    1. After input the below kind of Genio file, I could not retrive the aligmnet to be able to edit horizontal / vertical alignment (HC and VC)?
    You would have to export/import the geometry string - the example below was just taking part of a master string and carriageway edge.

    2. Is there is anyway to export a splited Halgn or Valgn for long alignment?
    You can split it as shown below.

    3. I have a very long alignments here with many earthwork zones for slopes and criteria, is there is way to divide the earthwork strings to change certain zone (insert gap or import a part by the chainage corresponing to the master string?)?
    When defining the earthworks, you can give a start and end point or chainage for the earthworks - you just need to do the earthworks in various stages to have differing earthworks along the road.

    4. is there is anyway to combine the alternative slopes with benches?
    Look at the 26 INTERAFC examples in the Help file [MXROAD > Help > Reference > Linemode > INTERFACE > Examples] - one of these should be what you are looking for.

    5. is there is anyway to export a line mode for the earthwork already created and log is lost?
    No.

    6. is there is anyway to create detailed mass haul (to show haulage distance and mass,..... etc.), I found somthing in the help but it is not so much detailed)?
    I do not understand exactly what it is you want to see. The mass haul diagram is fairly simple, but can be added to using the CAD tools if required.

    Mark



  • 1. After input the below kind of Genio file, I could not retrive the aligmnet to be able to edit horizontal / vertical alignment (HC and VC)? You would have to export/import the geometry string - the example below was just taking part of a master string and carriageway edge. 2. Is there is anyway to export a splited Halgn or Valgn for long alignment? You can split it as shown below. 3. I have a very long alignments here with many earthwork zones for slopes and criteria, is there is way to divide the earthwork strings to change certain zone (insert gap or import a part by the chainage corresponing to the master string?)? When defining the earthworks, you can give a start and end point or chainage for the earthworks - you just need to do the earthworks in various stages to have differing earthworks along the road. 4. is there is anyway to combine the alternative slopes with benches? Look at the 26 INTERAFC examples in the Help file [MXROAD > Help > Reference > Linemode > INTERFACE > Examples] - one of these should be what you are looking for. 5. is there is anyway to export a line mode for the earthwork already created and log is lost? No. 6. is there is anyway to create detailed mass haul (to show haulage distance and mass,..... etc.), I found somthing in the help but it is not so much detailed)? I do not understand exactly what it is you want to see. The mass haul diagram is fairly simple, but can be added to using the CAD tools if required.
  •  

    HI,
    Thanks for your response and sorry for my last message some errors occurred and the message sent before I complete it.
    My comments are below:


    1. After input the below kind of Genio file, I could not retrive the aligmnet to be able to edit horizontal / vertical alignment (HC and VC)?
    You would have to export/import the geometry string - the example below was just taking part of a master string and carriageway edge.
    How can I split the GC by station (GC contains only points), When I used the station for GC the split made and I could retrieve the alignment but I could not see it and the vertical retrived half of the alignment only (check the attached GENIO and inp files).

    2. Is there is anyway to export a splited Halgn or Valgn for long alignment?
    You can split it as shown below.
    Below where?? I need to split a Halgn / Valgn file.

    3. I have a very long alignments here with many earthwork zones for slopes and criteria, is there is way to divide the earthwork strings to change certain zone (insert gap or import a part by the chainage corresponding to the master string?)?
    When defining the earthworks, you can give a start and end point or chainage for the earthworks - you just need to do the earthworks in various stages to have differing earthworks along the road.
    I know but the problem occurs when we need to change the slope/ criteria inside a larger zone previously made.

    4. is there is anyway to combine the alternative slopes with benches?
    Look at the 26 INTERAFC examples in the Help file [MXROAD > Help > Reference > Linemode > INTERFACE > Examples] - one of these should be what you are looking for.
    I looked at all those examples but the problem is the alternative slopes doesn't have a target sting to start within the next string (to initiate a second element).

    5. is there is anyway to export a line mode for the earthwork already created and log is lost?
    No.
    Thanks.


    6. is there is anyway to create detailed mass haul (to show haulage distance and mass,..... etc.), I found somthing in the help but it is not so much detailed)?
    I do not understand exactly what it is you want to see. The mass haul diagram is fairly simple, but can be added to using the CAD tools if required.
    We produce a little bit detailed mass haul, contains also the crossing roads quantities (I couldn't attache a sample can you provide me with location can have large).

    CR-186-MX.zip
Reply
  •  

    HI,
    Thanks for your response and sorry for my last message some errors occurred and the message sent before I complete it.
    My comments are below:


    1. After input the below kind of Genio file, I could not retrive the aligmnet to be able to edit horizontal / vertical alignment (HC and VC)?
    You would have to export/import the geometry string - the example below was just taking part of a master string and carriageway edge.
    How can I split the GC by station (GC contains only points), When I used the station for GC the split made and I could retrieve the alignment but I could not see it and the vertical retrived half of the alignment only (check the attached GENIO and inp files).

    2. Is there is anyway to export a splited Halgn or Valgn for long alignment?
    You can split it as shown below.
    Below where?? I need to split a Halgn / Valgn file.

    3. I have a very long alignments here with many earthwork zones for slopes and criteria, is there is way to divide the earthwork strings to change certain zone (insert gap or import a part by the chainage corresponding to the master string?)?
    When defining the earthworks, you can give a start and end point or chainage for the earthworks - you just need to do the earthworks in various stages to have differing earthworks along the road.
    I know but the problem occurs when we need to change the slope/ criteria inside a larger zone previously made.

    4. is there is anyway to combine the alternative slopes with benches?
    Look at the 26 INTERAFC examples in the Help file [MXROAD > Help > Reference > Linemode > INTERFACE > Examples] - one of these should be what you are looking for.
    I looked at all those examples but the problem is the alternative slopes doesn't have a target sting to start within the next string (to initiate a second element).

    5. is there is anyway to export a line mode for the earthwork already created and log is lost?
    No.
    Thanks.


    6. is there is anyway to create detailed mass haul (to show haulage distance and mass,..... etc.), I found somthing in the help but it is not so much detailed)?
    I do not understand exactly what it is you want to see. The mass haul diagram is fairly simple, but can be added to using the CAD tools if required.
    We produce a little bit detailed mass haul, contains also the crossing roads quantities (I couldn't attache a sample can you provide me with location can have large).

    CR-186-MX.zip
Children