10.09.00.74 & Above
In OpenPlant when you have multiple projects, you need to copy Workset multiple times resulting in copying of duplicate data which is same across all of the projects. e.g. The schemas and specs used for all these projects is same. This results in waste of disc space and it becomes difficult to manage because if there is one change in schema it should be manually replicated in all worksets. In this case we need to restructure the Workspace to contain all the workset level folders.
Solution: This can be achieved by relocating the workset specific folders at Workspace level and modifying the configuration files to point to correct location.
1) Create a new workspace and workset from OPPA and name them e.g. Workspace-> OpenPlantExampleTest and Workset->ImperialWSTest
2) Rename the workset schemas folder to something like WorksetSchemas
3) Cut all the common folders from the workset\Standards\OpnePlant location
4) Paste the folders that are cut in step 3 above in Workspace\Standards\OpenPlant folder.
5) Since we have relocated the folders we need to change the relevant config files and repoint some configuration variables
6) In C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\WorkSpaces\OpenPlantExampleTest\WorkSets\ImperialWSTest.cfg
Change following
From this
OPENPLANT_WORKSET_STANDARDS = $(_USTN_WORKSETSTANDARDS)OpenPlant/PROSTRUCTURES_WORKSET_STANDARDS = $(_USTN_WORKSETSTANDARDS)ProStructures/
%if defined (_USTN_PRODUCT_DIR_NAME) %if exists ($(_USTN_WORKSETSTANDARDS)$(_USTN_PRODUCT_DIR_NAME)/$(OpenPlant_Product)/$(OpenPlant_Product).cfg) %include $(_USTN_WORKSETSTANDARDS)$(_USTN_PRODUCT_DIR_NAME)/$(OpenPlant_Product)/$(OpenPlant_Product).cfg level WorkSet %endif%endif
to this
OPENPLANT_WORKSET_STANDARDS = $(_USTN_WORKSPACESTANDARDS)OpenPlant/PROSTRUCTURES_WORKSET_STANDARDS = $(_USTN_WORKSETSTANDARDS)ProStructures/
%if defined (_USTN_PRODUCT_DIR_NAME) %if exists ($(_USTN_WORKSPACESTANDARDS)$(_USTN_PRODUCT_DIR_NAME)/$(OpenPlant_Product)/$(OpenPlant_Product).cfg) %include $(_USTN_WORKSPACESTANDARDS)$(_USTN_PRODUCT_DIR_NAME)/$(OpenPlant_Product)/$(OpenPlant_Product).cfg level WorkSet %endif%endif
7) And since we renamed the Schemas folder under workset to SchemasWorkset we need to change the following config var in
C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\WorkSpaces\OpenPlantExampleTest\WorkSets\ImperialWSTest\Standards\OpenPlant\OpenPlant.cfg
from this
OPENPLANT_WORKSET_SCHEMA_DIR = $(OPENPLANT_WORKSET_STANDARDS)Schemas/
OPENPLANT_WORKSET_SCHEMA_DIR = $(OPENPLANT_WORKSET_STANDARDS)SchemasWorkset/
And finally, since the workset still has columngrid folder and files we need to make sure the settings for columngrid are pointing to correct locations.
So change the following
#----------------------------------------------------------------------------# Column Grid Configuration#----------------------------------------------------------------------------MS_DGNLIBLIST > $(OPENPLANT_WORKSET_STANDARDS)/ColumnGrids/*.dgnlib
SMC_COLUMNGRID_DEFINITION_DGNLIB = $(OPENPLANT_WORKSET_STANDARDS)ColumnGrids/ColumnGridDefinitions.dgnlibSMC_COLUMNGRID_TEMPLATE_DGNLIB = $(OPENPLANT_WORKSET_STANDARDS)ColumnGrids/GridTemplate.dgnlib
# Grid models are created by default in the active design file. These configuration variables can# be used to specify an external file. The seed file and the name and location of the output file can be set.# Also, the SMC context object allows applications to set this behavior at runtime.
SMC_COLUMNGRID_GRIDMODELSSEEDFILE = $(MS_DESIGNSEED)SMC_COLUMNGRID_GRIDMODELSFILE = $(_USTN_WORKSETWORKFILES)Grids/GridModels.dgn
# The grid export file contains the basic defintions of SMC grids. It is updated# whenever the grid definitions are changed in the Grid Systems dialog.
SMC_COLUMNGRID_DEFINITION_EXPORTTEXTFILE=$(OPENPLANT_WORKSET_STANDARDS)ColumnGrids/gridlines.txt
#----------------------------------------------------------------------------# Column Grid Configuration#----------------------------------------------------------------------------MS_DGNLIBLIST > $(_USTN_WORKSETSTANDARDS)OpenPlant/ColumnGrids/*.dgnlib
SMC_COLUMNGRID_DEFINITION_DGNLIB = $(_USTN_WORKSETSTANDARDS)OpenPlant/ColumnGrids/ColumnGridDefinitions.dgnlibSMC_COLUMNGRID_TEMPLATE_DGNLIB = $(_USTN_WORKSETSTANDARDS)OpenPlant/ColumnGrids/GridTemplate.dgnlib
SMC_COLUMNGRID_DEFINITION_EXPORTTEXTFILE=$(_USTN_WORKSETSTANDARDS)OpenPlant/ColumnGrids/gridlines.txt
8) Save all the modified files and start OpenPlant Modeler with the new workspace workset settings to test your changes.
Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!