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
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
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 :-)
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]
Perfect :-)
Now BM acts just like I want - I think :-)
Thank you very much.
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?
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?
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.
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...
Using the attached db1.xml schema, could you perform the following:
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.