OBD Connect - std_appl.cfg Revisited
Sean 'Bear' Forward
Senior Structural Designer\CAD Administrator @ Universal Site Solutions
It's been a while since I've had time to sit down and put some updates together. I've been wanting to share some updates for while, but rather than bombard you all at once I'll split down what I've done to date into OBD and OPM.
If you've missed things to date, you can have a quick read here:
The basics are still the same, but having gone through some issues some updates have been made:
#---------------------------------------------------------------------------
# Determine MicroStation Version
#---------------------------------------------------------------------------
_CADmanage = 1
%if defined (_VERSION_10_0)
STD_MS = MSCE
%endif
_USTN_DISPLAYALLCFGVARS = 1
#---------------------------------------------------------------------------
# Set standard configuration based upon MicroStation version
#---------------------------------------------------------------------------
%if exists ($(hta_sBentley)MSCE_config/Organisation/.)
_USTN_ORGANIZATION = $(hta_sBentley)MSCE_config/Organisation/
%lock _USTN_ORGANIZATION
%endif
%undef _USTN_USERCFG
%undef _USTN_WORKSPACENAME
%undef _TF_WORKSPACEROOT
%if $(USERNAME) == "sean.forward"
_USTN_CAPABILITY < +CAPABILITY_UI_ALWAYSSHOWADMINWORKFLOW
%endif
%if exists ($(hta_sBentley))
OPM_BUILD?????= $(hta_sBentley)
%else
OPM_BUILD?????= D:/_CADsystem/Bentley/
%endif
_USTN_CUSTOM_CONFIGURATION = $(OPM_BUILD)MSCE_config/
%include $(_USTN_CUSTOM_CONFIGURATION)*.cfg
_USTN_CONFIGURATION = $(OPM_BUILD)MSCE_config/
To make sure everything is running, I've added a check config:
_CADmanage = 1
After some issues with setting some variables, I've added a few lines to undefine them:
%undef _USTN_WORKSPACENAME
%undef _TF_WORKSPACEROOT
Once undefined it became much easier to set them later in the process.
The last change I have made is to initiate the inclusion of the custom configurations. I've ended up going down this route as I had issues when trying to get the build to run the build by resetting config locations. Using the big stick approach seems to have worked around that and means there is no need to edit any local cfg files:
%if exists ($(hta_sBentley))
OPM_BUILD?????= $(hta_sBentley)
%else
OPM_BUILD?????= D:/_CADsystem/Bentley/
%endif
_USTN_CUSTOM_CONFIGURATION = $(OPM_BUILD)MSCE_config/
%include $(_USTN_CUSTOM_CONFIGURATION)*.cfg
_USTN_CONFIGURATION = $(OPM_BUILD)MSCE_config/
The base is now complete and sets the foundation for the next phases of the build.
More soon, stay tuned.