MBEGetConfigVar

Status
Not open for further replies.

Mike R.

Usenet Archive
Joined
Oct 30, 2001
Messages
9
Reaction score
0
Trying to do something simple,
I have multiple workspaces that use the same tools and therefore the same interface. Due to the different workspaces being in metric, english and so on this same tool will need to call a different file depending on the workspace the user is in. My thought was to have the tool call a macro and that that macro would then call the correct file based on config variables telling it which clients directory to dig the file up from. So if I have a config variable defined as Geoddb=Z:\bentley\client\scmetric\ in the pcf for instance, how do I then get the macro to utilize the information of the variable. What I want it to do is recognize the path and then I would include the filename I want the mdl to open. Can someone fill in the blank here?

Dim ddbdir as String
ddbdir=MbeGetConfigVar ("GEODDB")
MbeSendKeyin "mdl l acbook z RD_ddb.ddb"

Any guidance would be appreciated.
Mike
 
This 1 line should be sufficient to replace your 3 lines. Or put the quoted string in a function key menu.

MbeSendKeyin "mdl l acbook GEODDB:RD_ddb.ddb"

(Mike R.) wrote:
Trying to do something simple,
I have multiple workspaces that use the same tools and therefore the same interface. Due to the different workspaces being in metric, english and so on this same tool will need to call a different file depending on the workspace the user is in. My thought was to have the tool call a macro and that that macro would then call the correct file based on config variables telling it which clients directory to dig the file up from. So if I have a config variable defined as Geoddb=Z:\bentley\client\scmetric\ in the pcf for instance, how do I then get the macro to utilize the information of the variable. What I want it to do is recognize the path and then I would include the filename I want the mdl to open. Can someone fill in the blank here?
...
 
Status
Not open for further replies.

Latest threads

Back
Top