Hi,
I am trying to route the dataset based on discipline and I would like to ask you if you know of any variable that uniquely defines which application is running on top of MicroStation. I mean such as Bentley Architecture, Bentley Structure, Mechanical or something else.
Can we even make an algorithm which determines the Discipline and route us to the corresponding datasets without explicitly writing the variable in each application's config files? Any help on this would be of great help to me.
Sincerely,
Rabi
For mechanical, try: %if exists($(HVACDIR_PROGRAM))
HVACDIR_PROGRAM only loads with BBMS (by default, unless you force it to load in your config)
For electrical, try: %if exists($(BBES_DATASETNAME))
BBES_DATASETNAME only loads with BBES (by default, unless you force it to load in your config)
for Structural, try: %if exists $(STF_DATASETNAME)
STF_DATASETNAME only loads with Bentley Structural (by default, unless you force it to load in your config)
For Architecture, try: %if exists $(ATFDIR_MDLAPPS)
ATFDIR_MDLAPPS only loads with Bentley Architecture
I've done this for our office, and we did similar stuff at previous firms (for GEOPAK, InRoads, GeoGraphics, TranSoft, Axiom, etc.)
You may also try %if defined....
Plus, this will probably only work if you are running each app individually...if you are running the Suite (all together), I don't think this would work.
HTH,
Shawn
Thanks,
------------
Yes, that's the idea. As far as loading the building suite... good question! It may be possible to use some type of "and" condition so that you can test for multipe results, but this is reaching the limits of what I know about workspace configuration...
You may want to post something on the MicroStation forum along those lines; i.e., testing for the existing of multiple results.
Steve,
The "_USTN_ECAPPL" if used with "%if defined (_USTN_ECAPPL) == $(_USTN_TFROOT)triforma/Architecture/config/appl/
" looks for a constant where as $(_USTN_TFROOT) is a variable. Could you try something and let me know. I want a sure shot tool to determine the application in the configuration. Please let me know.
I tried other options suggested below but I still am looking for something which is in-built into the system.
Regards,
Damon,
Did it work for you? The _USTN_ECAPPL method didn't help me.
http://communities.bentley.com/Communities/Other_Communities/AskInga/w/AskInga/configuration-variable-processing-.aspx
Finally this was a lot help. I hope this will help you all.
That seems to be a dead link...
Anyhow, you are correct in that _USTN_TFROOT is a variable in itself, and not a hard coded value. However, it's the program side of the application, not the workspace, so I'd imagine it would be fairly consistent. I guess I'm not understanding why this would not work for you.
http://communities.bentley.com/Wiki/view.aspx/Configuration_Variable_Processing_