Howto configure Bentley Map?

Hi all

We are in the process of upgrading from Microstation Geographics to Bentley Map. We have never used the Geographic project, we have only used the functions in Geograhic.

I’m struggling with configuring Bentley Map – or to be more precise the msgeo_appl.cfg file.

Here is what I want: Bentley Map shall behave just as a normal Microstation, just where I have access to the Bentley Map functions. So I do not want a XFM project or something like that.

The only thing I need is an odbc connection.

I have almost succeed in achieving the needed – there are just one “small” thin left: Every time I start Bentley Map it demands a “project directory”

Here I press “Cancel” and on the next dialog I also press “Cancel”.

Is there any way I can tell Bentley Map that I do not want a project directory. Or can I build a “default” project directory, which I can use to ALL my projects? All my projects use the same workspace, but connect to different odbc connections – and the contents of the databases are different…

I know that my life would be better if I use the Map manager and so on. But I have chosen not to use this for this moment, because I do not know which impact it has on our whole production flow.

If anyone have a suggestions on some good material to Bentley Map administrators – please let me know :-)

 

Kind regards

Morten

Parents
  • If you are wanting to just use the Map tools, without a XFM project, then use the msgeo user configuration. This will load the Map functionality ( except for placing / editing features). You do not need to edit anything ( config files, etc.)

    Then use the Microstation DB connection tool to connect to the database as needed.

     

  • Hi Jerry

    That is actually almost what I need - but I still want to use the "Project" settings. Because we uses the "projects".pcf to define some settings - for example where the dgn files are, the database name and so on.

    So if I could tell BM that it shall run as if there was "no project" - it would be perfect :-)

    Kind regard

    Morten

  • Hi Jeff

    Perfect :-)

    My next "problem" is this (I know I'm tweaking):

    When I open a dgn file where some objects has RDMBS connections I cannot change those objects.

    How can I change this behaivior?

    Now, I just open the dgn file in Microstation and do want I want, and then return to BM.

    I know I can just connect to a database, but most of the time I do not need the database...

    The error is this:

    Required startup database connection was cancelled, element with RDMBS properties not valid for tool.

    Kind regards

    Morten

  • Morten,

    When you open design files that had been used with a previous database connection, Bentley Map should be prompting with the "Connect to Database" to establish a connection to the same database. If you choose to cancel and not make a connection, then any elements with database linkages cannot be manipulated. This is done to improve the referential integrity between the MicroStation elements and the linked database rows.

    Are you cancelling the "Connect to Database" dialog?

    Regards,

    Jeff Bielefeld [Bentley]



  • Hi Jeff

    Actually yes - I'm cancelling the "Connect to Database" dialog. The reason is that we do not "use" Bentley Map - we only needs the Bentley Map functions... For example "find fragtments" and so on...

    We have our own database that use MS links to connect features to the database.

    So we do not use the Bentley Map "database", but our own database. But when we use data that have linkages to a database, we are not allowed to edit them unless we have the database connected. That is a little bit anoying ;-)

    So what I basically need is a Microstation with Map functions (just like with v8.5+geographics)...

    So if I could tell BMap that it shall not use a database - I think I would be home safe :-)

    Kind regards

    Morten

  • Morten,

    First the Bentley Map and MicroStation database connections are one in the same. Next you can add the following configuration variable...

    MS_GEOXFM_DISALLOW_INFERRED_DBCONNECTION = 1

    ...to your workspace or ustation.exe startup command line to disable the Bentley Map automatic database connection.

    Regards,

    Jeff Bielefeld [Bentley]



  • Hi Jeff

    Perfect :-)

    Now BM acts just like I want - I think :-)

    Thank you very much.

    Kind regards

    Morten

Reply Children
  • Hi Jeff

    The MS_GEOXFM_DISALLOW_INFERRED_DBCONNECTION = 1 setting is unfortunately not the solution...

    Because then we cannot search in the database.

    My problem is now that I want to automatically connect to a database that I have specified in my project configuration file (pcf).

    Now I do it using a small macro that connects to the database using the db= command. But when we open BM the database connection dialog box appears. If we press cancel on this - we cannot search in the database using the search tool.

    So how can I connect to a database using configuration variables?

    Kind regards

    Morten

  • Hi

    I think this is what I need: MS_GEOXFM_DBCONNECTDEF_FILE

    But that needs a XML file - can anyone provide me with a samle XML file connecting to a ODBC database?

    Kind regards

    Morten

  • Morten,

    You should be able to define the following configuration variables (those highlighted) MS_GEODBCONNECT, _USTN_DATABASENAME and MS_GEOINITCMD to automatically perform the database connection and prevent the display of the "Connect to Database" dialog.

    Regards,

    Jeff Bielefeld [Bentley]



  • Hi Jeff

    Unfortunately it do not work - or I cannot get it to work... If I add a database.xml file to my project - the dialog do not appear.

    I generated the database.xml from the Map Administrator.

    But the database.xml solution is not good, because then I have to generate XML files for all our projects, - and everytime we changes the database the xml has to be generated again... And yes, we change the database many times...

    Kind regards

    Morten

  • Morten,

    Using the attached db1.xml schema, could you perform the following:

    1. Create an ODBC DSN named mytown that points to the delivered mytown.mdb database file.
    2. Using the Bentley Geospatial Administrator application, open db1.xml schema and perform "Export" to generate the XFM workspace.
    3. Select and "Run" the "user1" workspace.
    4. Open work.dgn and verify that the MicroStation status bar shows "Database: mytown" indicating a database connection to mytown data source has been created.
    5. Using the Command Manager, place a few "Pole" feature instances.
    6. Perform "File > Save" and "File > Save Settings" to ensure that the work.dgn design file has been saved with mytown database connection information.
    7. Exit Bentley Map session.
    8. Start a new Bentley Map session using the same "db1_user1" user workspace.
    9. Verify that the "Connect to Database" dialog from MicroStation does not appear.

    If you observe different behavior (e.g. the "Connect to Database" appears) please let me know as we may need to open a Service Ticket to determine the cause of the unexpected behavior.

    Regards,

    Jeff Bielefeld [Bentley]