Keyin to click YES

I'm trying to write a script for a Batch Process.  Is there a key-in to click Yes on the dialog shown below?

Parents
  • Hi Josh,

    so it's not clear what product and version you use

    From the dialog icon I assume you do not use MicroStation, but some civil product (OpenRoads Designer?). In such case, it's even more important to follow the best practices and to specify exactly, what product do you use (because you ask about ORD in MicroStation forum).

    Is there a key-in to click Yes on the dialog shown below?

    is right, that in CE, there is no standard way how to go over modal dialog and that the key-in does not work (next reason why used version has to be specified always).

    Because GUI does not allow (as far as I know) to use key-in to confirm or reject modal dialog, a workaround, where no GUI is used, must be used. You can call "one line VBA code" using key-in, without requirement to create VBA macro (-mvba file):

    macro vba execute ActiveDesignFile.Models.Delete ActiveDesignFile.Models("<model name>")

    for example

    macro vba execute ActiveDesignFile.Models.Delete ActiveDesignFile.Models("Layout 2B")

    With regards,

      Jan

    Answer Verified By: Josh M 

Reply
  • Hi Josh,

    so it's not clear what product and version you use

    From the dialog icon I assume you do not use MicroStation, but some civil product (OpenRoads Designer?). In such case, it's even more important to follow the best practices and to specify exactly, what product do you use (because you ask about ORD in MicroStation forum).

    Is there a key-in to click Yes on the dialog shown below?

    is right, that in CE, there is no standard way how to go over modal dialog and that the key-in does not work (next reason why used version has to be specified always).

    Because GUI does not allow (as far as I know) to use key-in to confirm or reject modal dialog, a workaround, where no GUI is used, must be used. You can call "one line VBA code" using key-in, without requirement to create VBA macro (-mvba file):

    macro vba execute ActiveDesignFile.Models.Delete ActiveDesignFile.Models("<model name>")

    for example

    macro vba execute ActiveDesignFile.Models.Delete ActiveDesignFile.Models("Layout 2B")

    With regards,

      Jan

    Answer Verified By: Josh M 

Children