Quantcast
Channel: ProjectWise Design Integration Wiki
Viewing all articles
Browse latest Browse all 1890

Common_Predefined_WorkspaceGroups.cfg

$
0
0
Current Revision posted to ProjectWise Design Integration Wiki by Buddy Branham on 4/26/2023 11:55:28 AM

###################################################################################################
#
# Name: Common_Predefined_WorkspaceGroups.cfg
# Description: Get paths for Workspace Groups.
# Author: Buddy Branham
# Date: 2022/02/28
# Version: 2.0.0.0
#
#--------------------------------------------------------------------------------------------------
# Notes:
# - 2022-02-18 Intial vesion of file (2.0.0.0)
# - 2022-02-28 Initial Release (2.0.0.0)
#
#--------------------------------------------------------------------------------------------------
# Available Variables: Variables previously defined in configuration that may be applicable to cfg file
#
# CSB Block/CFG File Level Variable Value
# Common_Predefined.cfg Pre-defined _DYNAMIC_DATASOURCE_BENTLEYROOT PW Moniker to folder that houses Common_Predefined.cfg
# Common_Predefined.cfg Pre-defined _DYNAMIC_WORKAREA $(DMS_PROJECT(_DGNDIR))
# Common_Predefined.cfg Pre-defined _DYNAMIC_WORKAREA_NAME $(LASTDIRPIECE(_DYNAMIC_WORKAREA))
# Common_Predefined.cfg Pre-defined _DYNAMIC_PARENTWORKAREA $(DMS_PARENTPROJECT(_DGNDIR))
# Common_Predefined.cfg Pre-defined _DYNAMIC_PARENTWORKAREA_NAME $(LASTDIRPIECE(_DYNAMIC_PARENTWORKAREA))
# Common_Predefined.cfg Pre-defined _DYNAMIC_CONNECTEDPROJECT $(DMS_CONNECTEDPROJECT(_DGNDIR))
# Common_Predefined.cfg Pre-defined _DYNAMIC_CONNECTEDPROJECTNAME $(LASTDIRPIECE(_DYNAMIC_CONNECTEDPROJECT))
# Common_Predefined.cfg Pre-defined _USTN_CONNECT_PROJECTGUID $(DMS_CONNECTEDPROJECTGUID(_DGNDIR))
#
# Common_Predefined.cfg Pre-defined _DYNAMIC_MSG_NOT_FOUND NOT FOUND
# Common_Predefined.cfg Pre-defined _DYNAMIC_MSG_VERIFY_PATH PLEASE VERIFY SPELLING AND PATH OF VARIABLE.
#
# Common_Predefined.cfg Pre-defined _DYNAMIC_PWSETUP_PATH _PWSetup
#
###################################################################################################

###################################################################################################
# DYNAMIC CONFIG VARIABLE
#--------------------------------------------------------------------------------------------------
# The "_DYNAMIC_CONFIGS" variable can be appended in each cfg file to track
# loading of cfgs and other notations.
###################################################################################################

_DYNAMIC_CONFIGS > Common Predefined Workspace Groups

###################################################################################################
# WORKSPACE GROUPS
#--------------------------------------------------------------------------------------------------
# Workspace Groups allow Workspaces (V8 and CONNECT) to be organized by Groups/Clients
# but still utilize the same common predefined cfg files and CSB
###################################################################################################


#---------------------------------------------------------------------------------------------
# WORKSPACE GROUPS ROOT
# _DYNAMIC_WORKSPACEGROUPSROOT needs to be a full path
# Alternate Example: _DYNAMIC_WORKSPACEGROUPSROOT : @:SandBox\SandBoxWorkspaces\
#---------------------------------------------------------------------------------------------
_DYNAMIC_WORKSPACEGROUPSROOT : $(parentdevdir(_DYNAMIC_DATASOURCE_BENTLEYROOT))ClientWorkspaces/

%if !($(_DYNAMIC_WORKSPACEGROUPSROOT)==$(_DYNAMIC_DATASOURCE))
%if !exists ($(_DYNAMIC_WORKSPACEGROUPSROOT))
%error $(_DYNAMIC_MSG_NOT_FOUND) WORKSPACE GROUPS ROOT : $(_DYNAMIC_WORKSPACEGROUPSROOT). $(_DYNAMIC_MSG_VERIFY_PATH)
%endif

##### The following allows for Workspace Groups specific PW Setup.
%if exists ($(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupsPWSetup_Predefined*.cfg)
%include $(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupsPWSetup_Predefined*.cfg
%endif
%endif

#---------------------------------------------------------------------------------------------
# WORKSPACE GROUP ROOT
#---------------------------------------------------------------------------------------------

_DYNAMIC_WORKSPACEGROUPROOT_PATH:$(_DYNAMIC_WORKSPACEGROUPNAME)/

_DYNAMIC_WORKSPACEGROUPROOT : $(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_WORKSPACEGROUPROOT_PATH)

%if !exists ($(_DYNAMIC_WORKSPACEGROUPROOT)) # && !defined(_PROJECTWISE_DRIVE_WORKSPACEGROUPROOT)
%error $(_DYNAMIC_MSG_NOT_FOUND) WORKSPACE GROUP ROOT : $(_DYNAMIC_WORKSPACEGROUPROOT). $(_DYNAMIC_MSG_VERIFY_PATH)
%endif

##### The following allows for Workspace Group specific PW Setup.
%if exists ($(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupPWSetup_Predefined*.cfg)
%include $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupPWSetup_Predefined*.cfg
%endif

#---------------------------------------------------------------------------------------------
# Version Specific Workspace Group Configuration Options
#---------------------------------------------------------------------------------------------

##### V8 VARIABLES
%if defined (_VERSION_8_11)

##### Set V8 Workspace Group Workspace Name and location
_DYNAMIC_WORKSPACEGROUP_V8WORKSPACESROOTNAME : $(_DYNAMIC_V8WORKSPACESROOTNAME)
_DYNAMIC_V8WORKSPACESROOT : $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_WORKSPACEGROUP_V8WORKSPACESROOTNAME)/

#Verify location
%if !exists ($(_DYNAMIC_V8WORKSPACESROOT))
%error $(_DYNAMIC_MSG_NOT_FOUND) DYNAMIC V8 WORKSPACESROOT - IN GROUP ROOT : $(_DYNAMIC_V8WORKSPACESROOT). $(_DYNAMIC_MSG_VERIFY_PATH)
%endif

##### CONNECT EDITION VARIABLES
%elif defined (_VERSION_10_0)

#----------------------------------------------------------------------------------------
#_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONNAME allows versions of full CONNECT configurations in the Workspace Group
#----------------------------------------------------------------------------------------
# Redirects _DYNAMIC_CONFIGURATIONROOT (_USTN_CONFIGURATION) to Workspace Group
# if WorkspaceSetup.cfg is found in Configuration Root.
# Otherwise, only the "Workspace" is redirected
#----------------------------------------------------------------------------------------
_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONNAME : $(_DYNAMIC_CONFIGURATIONNAME) #Configuration
_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT : $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONNAME)/

#Verify location
%if !exists ($(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT))
%error $(_DYNAMIC_MSG_NOT_FOUND) DYNAMIC CONFIGURATIONROOT - IN GROUP ROOT : $(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT). $(_DYNAMIC_MSG_VERIFY_PATH)
%endif

#Set Configuration Root to Workspace Group location and Check for Organization Folder
%if exists ($(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)WorkspaceSetup.cfg)
_DYNAMIC_CONFIGURATIONROOT : $(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)
#If Organization folder not found, _USTN_ORGANIZATION is redirected  to "Bentley" common location.
%if !exists ($(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)$(_DYNAMIC_CEORGANIZATIONROOTNAME)/) #./Configuration/Organization/
_DYNAMIC_CEORGANIZATIONROOT : $(_DYNAMIC_DATASOURCE_BENTLEYROOT)$(_DYNAMIC_CONFIGURATIONNAME)/$(_DYNAMIC_CEORGANIZATIONROOTNAME)/
%endif
%else
#Sets _USTN_CONFIGURATION to root location if not previously set
_DYNAMIC_CONFIGURATIONROOT :$(_DYNAMIC_DATASOURCE_BENTLEYROOT)$(_DYNAMIC_CONFIGURATIONNAME)/
%endif

#---------------------------------------------------------------------------------------------
# Workspace Group Workspaces Root Name
#---------------------------------------------------------------------------------------------
_DYNAMIC_WORKSPACEGROUP_CEWORKSPACESROOTNAME : $(_DYNAMIC_CEWORKSPACESROOTNAME) #Workspaces
_DYNAMIC_CEWORKSPACESROOT : $(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)$(_DYNAMIC_WORKSPACEGROUP_CEWORKSPACESROOTNAME)/

%if !exists ($(_DYNAMIC_CEWORKSPACESROOT))
%error $(_DYNAMIC_MSG_NOT_FOUND) DYNAMIC CE WORKSPACESROOT - IN GROUP ROOT: $(_DYNAMIC_CEWORKSPACESROOT). $(_DYNAMIC_MSG_VERIFY_PATH)
%endif

%endif


###################################################################################################
# Summary of Variables and Include Statements
###################################################################################################

#---------------------------------------------------------------------------------------------
# Workspace Groups: General
#---------------------------------------------------------------------------------------------
# _DYNAMIC_WORKSPACEGROUPSROOT : $(parentdevdir(_DYNAMIC_DATASOURCE_BENTLEYROOT))ClientWorkspaces/
# _DYNAMIC_WORKSPACEGROUPROOT_PATH :$(_DYNAMIC_WORKSPACEGROUPNAME)/
# _DYNAMIC_WORKSPACEGROUPROOT : $(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_WORKSPACEGROUPROOT_PATH)
# _DYNAMIC_WORKSPACEGROUPROOT : $(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_WORKSPACEGROUPNAME)/

# _PROJECTWISE_DRIVE_FOUND:0

# %include $(_DYNAMIC_WORKSPACEGROUPSROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupsPWSetup_Predefined*.cfg
# %include $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_PWSETUP_PATH)/WorkSpaceGroupPWSetup_Predefined*.cfg

#---------------------------------------------------------------------------------------------
# Workspace Groups: V8
#---------------------------------------------------------------------------------------------
# _DYNAMIC_WORKSPACEGROUP_V8WORKSPACESROOTNAME : $(_DYNAMIC_V8WORKSPACESROOTNAME)
# _DYNAMIC_V8WORKSPACESROOT : $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_WORKSPACEGROUP_V8WORKSPACESROOTNAME)/

#---------------------------------------------------------------------------------------------
# Workspace Groups: CONNECT Edition
#---------------------------------------------------------------------------------------------
# _DYNAMIC_WORKSPACEGROUP_CONFIGURATIONNAME : $(_DYNAMIC_CONFIGURATIONNAME) #Configuration
# _DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT : $(_DYNAMIC_WORKSPACEGROUPROOT)$(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONNAME)/

# _DYNAMIC_CONFIGURATIONROOT : $(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)
# _DYNAMIC_CONFIGURATIONROOT :$(_DYNAMIC_DATASOURCE_BENTLEYROOT)$(_DYNAMIC_CONFIGURATIONNAME)/

# _DYNAMIC_CEORGANIZATIONROOT: $(_DYNAMIC_DATASOURCE_BENTLEYROOT)$(_DYNAMIC_CONFIGURATIONNAME)/$(_DYNAMIC_CEORGANIZATIONROOTNAME)/

# _DYNAMIC_WORKSPACEGROUP_CEWORKSPACESROOTNAME : $(_DYNAMIC_CEWORKSPACESROOTNAME) #Workspaces
# _DYNAMIC_CEWORKSPACESROOT : $(_DYNAMIC_WORKSPACEGROUP_CONFIGURATIONROOT)$(_DYNAMIC_WORKSPACEGROUP_CEWORKSPACESROOTNAME)/


Viewing all articles
Browse latest Browse all 1890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>