Need help working from home with your Bentley software? We're here to help - click here

Custom dialog boxes

Hi again guys.

I'm trying to create a custom dialog box, which will initially have three fields. Waypoint name, Latitude and Longitude.

I've managed to create the dialog box and the field ID#s are 200000001, 200000002 and 200000003.

How do I enter these in a current BASIC macro? At the moment, the macro asks for some text (which I enter in the text editor window), but I want this text to be retrieved from the dialog box Waypoint name field (200000001).

Any ideas how I could go about doing this?

Thanks,

Phil.

Parents
  • My understanding of MicroStation BASIC is rusty, but here's a snipped from the help documentation:

    Access String

    Specifies the underlying BASIC variable that the item will be used to modify. Upon entry to the dialog, the underlying BASIC variable is used to set the appearance of the item. Upon exiting the reverse is true: the current value of the item is used to update the state of the underlying BASIC variable

    In the dialog box editor, each of your text items has the Access String property.  Assign that property the name of your BASIC variable.  BASIC takes care of displaying your variable's value, and updating its value when changed by a user.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • My understanding of MicroStation BASIC is rusty, but here's a snipped from the help documentation:

    Access String

    Specifies the underlying BASIC variable that the item will be used to modify. Upon entry to the dialog, the underlying BASIC variable is used to set the appearance of the item. Upon exiting the reverse is true: the current value of the item is used to update the state of the underlying BASIC variable

    In the dialog box editor, each of your text items has the Access String property.  Assign that property the name of your BASIC variable.  BASIC takes care of displaying your variable's value, and updating its value when changed by a user.

     
    Regards, Jon Summers
    LA Solutions

Children