Professional Documents
Culture Documents
Model Control System in Triforma: Mcs Guide
Model Control System in Triforma: Mcs Guide
Model Control System in Triforma: Mcs Guide
in TriForma®
V8 XM Edition
MCS Guide
DAA020460-1/0008
MCS Guide March 29, 2007
Trademarks
AccuDraw, Bentley, the “B” Bentley logo, MDL, MicroStation and SmartLine are registered
trademarks; PopSet and Raster Manager are trademarks; Bentley SELECT is a service mark of
Bentley Systems, Incorporated or Bentley Software, Inc.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, Distiller, Exchange, and PostScript are
trademarks of Adobe Systems Incorporated.
Windows, Microsoft and Visual Basic are registered trademarks of Microsoft Corporation.
Other brands and product names are the trademarks of their respective owners.
Patents
United States Patent Nos. 5,8.15,415 and 5,784,068 and 6,199,125.
Copyrights
©2000-2006 Bentley Systems, Incorporated.
MicroStation ©1998 Bentley Systems, Incorporated.
IGDS file formats ©1981-1988 Intergraph Corporation.
Intergraph Raster File Formats ©1993 Intergraph Corporation.
Portions ©1992 – 1994 Summit Software Company.
Portions ©1992 – 1997 Spotlight Graphics, Inc.
Portions ©1993 – 1995 Criterion Software Ltd. and its licensors.
Portions ©1992 – 1998 Sun MicroSystems, Inc.
Portions ©Unigraphics Solutions, Inc.
Icc ©1991 – 1995 by AT&T, Christopher W. Fraser, and David R. Hanson. All rights reserved.
Portions ©1997 – 1999 HMR, Inc. All rights reserved.
Portions ©1992 – 1997 STEP Tools, Inc.
Sentry Spelling-Checker Engine ©1993 Wintertree Software Inc.
Unpublished – rights reserved under the copyright laws of the United States and other countries.
All rights reserved.
The Model Control System (MCS) and Define Volume Utility . . . . . . . . A-1
MCS Design File Check-Out Dialog Box . . . . . . . . . . . . . . . . . . . . . A-2
Queries Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
Options Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
Open Volume File Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . A-5
Select Areas Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
Query Builder Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6
MCS Design File Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-9
MCS Design File Snapshot Dialog Box . . . . . . . . . . . . . . . . . . . . . . . A-10
Navigating in the Define Volume Utility . . . . . . . . . . . . . . . . . . . . . . A-11
VolEdit Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-12
File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-13
VolEdit Dialog Box Extension. . . . . . . . . . . . . . . . . . . . . . . . . . A-13
Index
W If you are using MCS for your project, the configuration variables that pertain to
MCS and the Database Setup tool may need to be defined before you start
TriForma so that all components work properly. (Configuration variables for the
Database Setup tool are necessary because MCS requires a database.)
Database Setup
W If you are using Model Control System (MCS) with TriForma and any of the
applications that run on it, you must follow the directions in this chapter before
starting the applications.
For data, you can use the default imperial and SI (metric) databases that come with the
software or your own data from a database such as Oracle or Microsoft SQL Server.
For Design Series and other TriForma applications to efficiently access and use the
data, you need to set up the following:
1. Database instance
2. ODBC drivers
3. ODBC data source
Database Instance
The database instance is an empty database.
Procedures for creating an instance of Oracle and SQL Server are given later in this
chapter. You may also need to refer to the corresponding database vendor’s
documentation for detailed information.
ODBC Drivers
ODBC drivers are sometimes referred to as middleware. Based on the ODBC
specifications, they provide a neutral or standard way for applications to access
database records.
ODBC drivers are available from third-party software developers such as Microsoft.
Drivers are available for commercial relational database management systems (RDBMS),
spreadsheets, and ASCII formats.
Before you define the ODBC data source, you must have the driver for that type of
database.
W Microsoft currently has available free ODBC drivers that you should use to ensure
the proper functionality of Oracle, or SQL Server. These drivers can be installed by
installing Microsoft Data Access Components available on the Internet at:
http://www.microsoft.com/data
After you install an ODBC driver, you must define an ODBC data source.
If Then
You plan to open Design You do not need to define any configuration variables for
Series in psdstut, the MCS and the Database Setup tool. During installation, they are
default project workspace automatically defined for Design Series, including the ODBC
data source.
You plan to open Design You do not need to define any configuration variables. The
Series in a project PS_CODES_DB configuration variable is already defined to
workspace other than the point to the database where your project data will be stored.
default project workspace You can, however, change any configuration variables
according to your project specifications. See the chapter
“Managing Your Project” in the PlantSpace Design Series
Administrator Guide.
If Then
• You selected the MCS options during You do not need to define PS_CODES_DB.
the installation of TriForma EC, and
• You plan to open ATF, STF, or HTF in
the delivered default project workspace
(TriForma_Imperial or TriForma_SI)
• You selected the MCS options during You must define PS_CODES_DB to point to the
the installation of TriForma EC, and database where your project data will be
• You plan to open ATF, STF, or HTF in a stored. You must also define other
project workspace other than the configuration variables according to your
default project workspace project specifications. See information on
(TriForma_Imperial or TriForma_SI)
project configuration in the appropriate
application’s documentation.
If you want to use the delivered Access database for the Tutorial project (used with the
PlantSpace Design Series QuickStart Guide for users who are new to Design Series), the
ODBC data source is automatically defined so you can skip this section. Because this is
an Access database, you can use Access database tools to manage and view the data.
W You need a working knowledge of Design Series and Access to perform the
administrator tasks associated with selecting the data source. Because this Guide
does not address standard database management tasks such as backup, recovery,
tuning, and optimization, you also need to take the usual precautions to ensure the
integrity of the database.
Location of
Database on a
Network Drive
5. Click the Select button and select the default Access database file,
Pltspace.mdb, as shown.
✍ Depending on your operating system and version number, you may
need to navigate to the ...\Projects\psdstut directory on your
network drive.
6. Click OK.
W You need to be familiar with Oracle database software to install and configure it.
W Creating your project database using Oracle 8i requires that you follow these tasks
in this order.
W 1. It is suggested but not required that two control files be on two different physical
drives to be able to recover the database in case a control file on one drive is lost.
2. It is suggested that you provide the same values for db_name, instance_name,
and service_name unless you know why you want them to be different.
✍ Be sure to provide the path to the directory just above the \bin directory.
For example if your installation looks like c:\oracle\ora8i or ora9i\bin, then
provide c:\oracle\ora8i or ora9i as the Oracle directory.
Example: createams9i amse c:\amse c:\oracle\ora9i
b. Modify the settings in createams8i.bat or createams9i.bat according to your
setup by using the following examples as a guideline:
SET ORACLE_SID = amse
SET PS_ORACLE_HOME = c:\amse
SET ORACLE_HOME = c:\oracle\ora8i or ora9i
✍ In this case, run the batch without any parameter like: createams8i or
createams9i.
W This batch file will pause after initial processing, which might take one or two
minutes. At this pause, you should check for errors (if any) in the command
window. You should look for a message similar to "database created" before letting
the batch continue.
✍ If the results are not correct, then the createams8i.bat file or createams9i.bat file did not run
properly. Look at the command window (DOS) and also in the *.lst files in the scripts
directory (for example, under c:\amse).
6. Expand the Listerners directory and select LISTENER which you just
created, as shown.
7. Click the Add Address button and type or select the following:
• Protocol: TCP/IP
• Host: {machine name}
9. Click the Add Database button and type the following as shown:
• Global Database Name: amse (same as INSTANCE_NAME)
• Oracle Home Directory: {drive:}\orant816 (same as ORACLE_HOME)
• SID: amse (same as INSTANCE_NAME).
10. From the menu bar, choose File>Save Network Configuration and
minimize the dialog box.
2. In the Net Service Name Wizard: Welcome dialog box, type the name
of this service (for example, amse) and click Next.
3. In the next dialog box shown, select TCP/IP (Internet Protocol) and
click Next.
4. In the next dialog box shown, type the host (machine name), leave
the port number shown, and click Next.
✍ Leave the dialog box open and continue to the next procedure.
W Even though it appears that you have finished, you must complete the following
steps.
1. Select the new service in the tree pane, and click the Advanced
button on the right.
2. In the Advanced Service Options dialog box, type the instance name
(for example, amse) and click OK.
✍ Continue to the “Procedures for Installing Your ODBC Drivers and Defining Your ODBC Data
Source”.
W You need to be familiar with SQL Server database software to install and configure
it.
If you have not yet installed Microsoft SQL Server, you should do so now. An example
is used to make this process of preparation more meaningful. In this example, the
server group SQL_SERVER has been created, registered, and started.
W Creating a project database using SQL Server requires that you follow these tasks in
this order:
✍ In the following procedures, the system assumes that the database instance name
is SQL_ENGLISH. The instance name is case sensitive. However, you can replace
SQL-ENGLISH with the name of your database instance in the names of the files
and directories.
✍ You must have administrator privileges to log on to SQL Server on the server
machine to create a database instance.
2. To view all of the options for server HARP, click the plus (+) sign by
HARP.
5. At the Name field, type SQL_ENGLISH, and use the default settings
shown in this example.
6. Click OK.
7. To verify that the new database SQL_ENGLISH was created, click the
plus sign (+) by the Databases directory and view the expanded
directory.
The SQL Server Login Properties - New Login dialog box is displayed.
3. In the General tab displayed, select or type values for the following
fields as shown in this example:
✍ This procedure uses proj and sysadmin as user examples added to the
SQL_ENGLISH database.
3. In the General tab, select or type the values for the following fields as
shown in the example:
✍ To create a system administrator as a new user, you must first create a login
named sysadmin with database administrator privileges, and then follow the
previous steps.
✍ You can start the server in two ways, by using SQL Server Enterprise Manager or
SQL Server Service Manager.
c. Select Start.
2. To start the server from SQL Server Service Manager:
a. From Windows Start>Programs menu, select the appropriate
Microsoft SQL Server program group for the version you are using.
b. Select SQL Server Service Manager.
The SQL Server Service Manager dialog box is displayed.
c. Select Start/Continue.
➤ To modify permissions
3. In the General tab, select any of the settings for file growth and
maximum file size, or use the selections shown in this example.
4. Click Apply.
2. Select the settings that you want, click Apply and then OK.
✍ Continue the next procedure to install your ODBC drivers and define your data
source.
W Microsoft currently has available free ODBC drivers that you should use to ensure
the proper functionality of Oracle, or SQL Server.
2. Refer to the Readme file for the correct version of the Microsoft Data
Access Components to download and install.
The Create New Data Source dialog box is displayed listing the
installed ODBC drivers.
3. Scroll down and select Microsoft ODBC for Oracle or SQL Server
and click Finish.
4. For Oracle, complete the following fields in the setup dialog box
displayed and then click OK.
• Data Source Name: the name of your Oracle database such as the sample
name
• Description: the description to identify the purpose such as the sample
description
• User Name: (your system login, or your project login, or no name)
• Server: the net service name that you used in step 2, “In the Net Service Name Wizard:
Welcome dialog box, type the name of this service (for example, amse) and click Next.”
✍ The setup of the Oracle data source is finished.
5. For SQL Server, complete the following fields in the setup dialog box
displayed and then click Next:
• Name: the name of your SQL Server database such as the sample name
• Description: the description to identify the purpose such as the sample
description
• Server: the machine name where the database resides
✍ The remaining dialog boxes pertain to SQL Server.
6. In the next dialog box, select the second radio button and the check
box shown.
8. In the next dialog box, type SQL_ENGLISH in the first field, select the
check boxes shown, and then click Next.
9. In the next dialog box, select the check box shown and click Finish.
10. . In the next dialog box, click the Test Data Source button.
11. In the last dialog box, be sure that the message displayed indicates
that the test was successful, and then click OK.
W If you are not using the following optional procedures, go directly to the next
chapter “Setting Up and Maintaining Your Project Database”.
This chapter explains the tables of your project database, and the
tasks necessary to maintain your database over time.
• File-based storage
• Component-based storage
File-Based Storage
In file-based storage, MCS stores the DGN file. File-based storage mode is required for
applications that associate components to maintain the associations between
components within a model. You can extract the components by entering the name of
the design file.
W Where MicroStation V8 DGN files can contain multiple models, DGN files for use
in MCS can contain only one model.
You can store your design data modeled from the Design Series 3D applications in an
ODBC-compliant database such as:
Component-Based Storage
When the components are in the database, all users have access. The initial design,
review, and revisions can be organized in many different ways (for example, by area,
individual system, or line number). These tasks are explained in the user chapter of
this Guide.
• Check out a specified area, system, or line number from the project
database
• Go to the job site and model components
• Return to the office and connect to the project database
• Check in the updated information
The following diagram visually compares the processes involved in file-based storage
and component-based storage.
MCS
MCS(program
(programthat thatmanages
manages MCS
MCS(program
(programthat
thatmanages
manages
design
designfiles
filesininyour
yourdatabase)
database) components
componentsininyour
yourdatabase)
database)
DGNs DGNs
Components Components
Database Tables
Applications use the tables of your project database to define the behavior of the
modeling software. The database tables can be classified into two categories:
✍ These tables are common to all applications that use MCS and are
explained in the next section.
• Design Series modeling tables, which are static tables that change
minimally
✍ These tables are not used in MCS. They are exclusive to Design
Series. For details on these tables if you are using Design Series,
refer to the chapter "Design Series Modeling Tables" in the
PlantSpace Design Series Reference Guide for Administrators.
MCS Tables
MCS tables in your project database can be grouped into the following categories:
COMPLENG
The length of linear components can be calculated automatically and stored in a column named
COMPLENG in any of the BUD_xxxx tables. Reports can then be generated directly from the
MCS tables.
This attribute is defined with the delivered configuration for pipes, trays, conduits, and ducts, and
can be added to other linear component types or removed from any component type. When this
attribute is present in the label, the length of the component is calculated from its two points and
is assigned at MCS Check-in, Append, or Update Database operations. The calculated length
value is in project units, which are either inches or millimeters.
A binary (BLOB) column called Graphics increases MCS checkout performance by reducing the
query time and amount of data to be transferred. This enhancement also enables Oracle
replication support using Microsoft ODBC drivers.
• <product>_BUD tables
• DEL_<product>_BUD tables
<product>_BUD Tables
A <product>_BUD table holds the components for each product that has been checked
into the database. The <product>_BUD tables are:
W If you change any component attributes, you must create or update these tables.
You can create or update these tables by using the Database Setup tool. For the
procedure, see “Building MCS Storage Tables”.
DEL_<product>_BUD Tables
The names of the DEL_<product>_BUD tables are identical to the names of the
<product>_BUD tables, except that they begin with “DEL_”.
• BUD_CATALOG table
• BUD_TABLE_ACCESS table
• CHECKOUT table
• CHECKOUT_HISTORY table
• DBSETUP_INFO table
• DEL_BUD_CATALOG table
• HISTORY table
• LEVEL_MAP table
• LEVEL_MAP_ACCESS table
• MODULES table
• PROBLEM_LOG table
• PROJECT_CONFIG table
• PROJECT_VOLUMES table
• SITE_CONFIG table
• STAND_ATTR table
BUD_CATALOG Table
This table contains a list of all the components that have been checked into the
database. It contains common data about all active components in the database, their
BUD_TYPE, the areas to which they belong, and one entry of range information for
each area.
BUD_TABLE_ACCESS Table
During the MCS process, this table controls access to the BUD_CATALOG tables. Two
users cannot access the table at the same time because this table is used to prevent
conflicts when users are checking out components at the same time.
CHECKOUT Table
This table contains a list of the checked out design files and related information created
by requests to lock components.
CHECKOUT_HISTORY Table
Information
This table contains a list of the transactions used on components (adding, locking, and
associated
with theupdating) after they have been checked out. The Append command is also included as
an add transaction.
Check-out
Operation
Column Name Comment
CHECKOUT_ID Check-out identification number, the unique
ID assigned to a Check-Out, Update Database,
and Append operation
BAD_CHECKOUT_ID Error ID
TYPE Transaction type
SYS_USERNAME System user name
USER_ID Database user name
NODE_NAME Node name
FILESPEC Name of file
NUM_CHECKOUT Number of components checked-out
CHECKOUT_TIME Time of transaction
CHECKIN_DESCRIPTION Comment
CHECKIN_SYS_USERNAME System user name
CHECKIN_USER_ID Database user name
CHECKIN_NODE_NAME Node name
CHECKIN_TIME Time and date of check-in
NUM_ADD Number of components added
NUM_COPY Number of components copied
NUM_DEL Number of components deleted
NUM_MOD Number of components modified
MOD_QUERY Model file query
REF_QUERY Reference file query
VOLUME Volume definition file name
AREAS Plant area names
CONTROL Control
DESCRIPTION User-entered description
PUB_TIME Time and date
DBSETUP_INFO Table
This table provides values that can be used to determine how the database was loaded.
DEL_BUD_CATALOG Table
This table contains a list of all the components that were a part of the database at one
point but were later deleted. This table contains a copy of the data that was stored in
the BUD_CATALOG table before the components were deleted.
HISTORY Table
If you modify a component and check it back into the database rather than deleting it,
an entry is made in the HISTORY table to indicate any label or graphic-related changes.
If you change the label, the label attribute and old values are stored in the HISTORY
table with the session ID (UPDATE_ID column in this table) of the MCS operation.
LEVEL_MAP table
This table contains a mapping of level names and unique IDs that are used to restore
levels of components when they are checked out.
LEVEL_MAP_ACCESS table
MODULES Table
This table controls the way that a commodity is handled in MCS. You can set the
descriptive name (ALIAS) of the commodity displayed in the MCS dialog boxes, and
whether the commodity is model based or file based. Shared cell instance and tag
elements require definitions. When MCS uses a file-based commodity, it writes these
definitions to the primary file being checked out. MCS does not write the definitions to
a reference file or snapshot file. Therefore, the definitions should be in the seed file
defined by MS_DESIGNSEED, in the directories defined by MS_SEEDFILES.
PROBLEM_LOG Table
PROJECT_CONFIG Table
This table contains the global settings of the project, including the units.
PROJECT_VOLUMES Table
SITE_CONFIG Table
STAND_ATTR Table
This table contains a list of standard attributes that are common to all components.
These attributes are added automatically to each <product>_BUD (storage) table and
are primarily related to MicroStation.
This table tracks the unique identification number (BUD_ID) assigned to each new
component checked into your project database.
This table tracks the identification number assigned during each checkout transaction
performed within MCS.
This table tracks the identification number assigned for different levels.
record in the BUD_TABLE_ACCESS table. (The ID from this sequence table goes to
column SEQ_NUM.).
• GROUP_CODE table
• GROUP_USAGE table
• USERS table
• ROLE_STATUS table
• STATUS_TRANSITION table
✍ For details on how these tables are used, see “Configuring Access Control”.
GROUP_CODE Table
USERS Table
ROLE_STATUS Table
below), a designer can check out components with the following statuses, STUDY and
PRELIMINARY.
STATUS_TRANSITIONS Table
FROM_STATUS TO_STATUS
STUDY PRELIMINARY
PRELIMINARY CHECKED
CHECKED IN_STRESS
IN_STRESS IFC
IFC HOLD
HOLD AS_BUILT
✍ For details on how these tables are used, see “Configuring Connectivity Processing”.
BRANCH_CONN Table
✍ This sample does not display all of the rows and columns.
✍ The BUD_ID column is a foreign key and references the BUD_ID column of the
PIPE_BUD table.
This matching column means that this table is designed to have rows in
synchronization with the PIPE_BUD parent table. In other words, if a row is deleted
from PIPE_BUD, that action should automatically delete the corresponding row from
the BRANCH_CONN table. Additionally, the BRANCH_CONN table cannot contain a
row that does not exist in the PIPE_BUD table. Columns CONN_1, CONN_2, and so
on, can have "0"s or blanks to indicate no connection.
OPERATION_STATE Table
W The existence of any records in this table alarms MCS to warn the administrator
that the BRANCH_CONN table is unusable. For details, see “To fix the
BRANCH_CONN table”.
BRANCH_CONN_ACCESS Table
The lock is removed when the synchronization operation ends. The locking-unlocking
mechanism is hidden from users. However, if the connectivity synchronization fails, the
administrator may need to manually delete any records from the
BRANCH_CONN_ACCESS table.
For example, if the Check-in, Update, or Append operation associated with above ID
(65780) fails, then the entry is not cleared from the BRANCH_CONN_ACCESS table.
This result causes any further connectivity update to wait in an infinite loop with a
warning (progress bar):
However, it could also be due to a large update by a user, in which case the entry will
eventually be cleared and the warning will go away automatically. So, if a user finds
that this warning is taking a long time to finish, the administrator should:
1. Get the ID from BRANCH_CONN_ACCESS table
2. Look for the corresponding entry in the CHECKOUT/CHECKOUT_HISTORY table
3. Determine if the entry is a live one and wait until it clears, or if it is a dead entry,
clear it manually.
CONNECTORS Table
For example, if a BUD_TYPE is not included in this table and a component of that
BUD_TYPE is connected to a PIPE_PIPE, then that component will not be shown as
connected in the BRANCH_CONN table.
✍ The contents of this table are provided as an example and should be updated to
include all the valid connectors of a project.
The Database Setup Tool is used to populate your project database with MCS tables
and Design Series modeling tables. Setting up and maintaining your project database
involves the following operations:
✍ If the database (that the configurations in the project setup point to)
is empty, then the following message is displayed, which is OK.
(The database may be empty because it has not yet been
populated.)
W If the Connect button is not grayed out, you need to check the project setting
because the activated button indicates that a connection to the specified data
source could not be established.
W Generally, you should be customizing your project setup so that you do not need
to change anything in the Database Setup tool. However, regardless of your
project settings, you can customize the values of the settings in the Database
Setup Tool.
c. At the Project User and Project Password fields, leave these fields blank or
complete them based on the following:
• If you are using MS Access as your project database, leave these fields blank
because they are not required.
• If you are using Oracle or SQL Server, fill in the project user and project
password according to your system requirements.
✍ The Connect button becomes enabled, which means that you are
not connected to your project database, and you need to follow the
next step to make the connection.
4. Click Connect to connect to the project database.
✍ If an error message is displayed when you click the Connect button,
you must correct the settings and then try again.
If the connection is successful, the Connect button is grayed out and
the rest of the buttons In the PlantSpace Database Setup window
become enabled.
✍ If you are using a SQL Server or Oracle database, continue to the next section to
populate the database.
3. Click OK.
You will also see the following message. The last statement tells you
to ignore this message if you are performing a new installation or
replacement of a partial or damaged previous installation.
W Cancelling the operation may leave the data source in an inconsistent or unusable
state.
✍ At this point, if you are using specs (instead of catalog data), continue to the
chapter "Creating and Checking Piping Specifications" in the PlantSpace Design
Series Administrator Guide and create specs.
• B3D_3DM
• B3D_BEAMS
Tablespaces are a kind of container where you create tables, views, and so on. As you load a
project (explained in “Starting the Database Setup Tool” on page 2-21), tables are created in one of
the two default tablespaces (B3D_3DM and B3D_BEAMS) based on the name specified in the
DAT files, which create the tables. The delivered configuration groups the catalog tables under
B3D_3DM and MCS tables under B3D_BEAMS.
For example:
However, if you want to load multiple projects with your own tablespaces, then you should use
the following procedure.
3. Modify the following files to replace tablespace names with your project's
tablespace names:
• cfgsite.dat
• cretable.dat
• users.dat
• creusers.sql
• buildstoragetables.scr
W You should perform this operation with extreme care because it empties all
contents from the BUD tables and Spec tables.
W Cancelling the operation may leave the data source in an inconsistent or unusable
state.
Within the project database is a group of tables that store all the deleted components,
as shown in the following section. As the database administrator, you can query these
tables to retrieve the lost data. This feature works in the same way as the Windows
Recycle Bin. Deleted objects are stored there until you empty the bin.
When you delete a component, it is not actually deleted from the system. All deleted
component data is stored in the following tables.
You will need to search for the BUD IDs that match those attributes.
For example, if the missing component is a tank, you would need to
query the DEL_EQUIP_BUD table.
3. Make a note of the BUD IDs found.
4. Move the component found in the DEL_<PRODUCT>_BUD table to its
corresponding BUD table.
For example, if you queried the DEL_EQUIP_BUD table and found a
tank, you will need to return that tank to the EQUIP_BUD table.
5. If any records in the DEL_BUD_CATALOG table match BUD IDs found
in the DEL_<PRODUCT>_BUD table, move those records from the
DEL_BUD_CATALOG table to the BUD_CATALOG table.
✍ You can clean out the DEL_***_ BUD tables manually or create an SQL script file to do
so. The procedures for cleaning out the tables depend on the database used by the project.
W If you installed Design Series, continue to the Design Series Administrator Guide to
configure the modeling tables that are exclusive to Design Series. See the chapter
"Configuring Your Project Database" on p. 2-1.
The Cfgsite.dat file creates the SITE_CONFIG table, which stores information related to the
sites in your project database. The Cfgsite.dat file is in the directory defined by the
PS_DB_LOAD configuration variable.
The SITE_CONFIG table contains one row for each site, and all the SITE_CONFIG tables
must be identical across physically distributed databases. By default, the SITE_CONFIG table is
initialized, as shown:
To change the site ID, you must modify one of the files in the following table, and load it by
opening the Database Setup tool and clicking the Data File button. The PROJ_CONFIG table is
loaded from one of the following files:
The imperial or System International (SI, formerly metric) file is in the directory defined by the
PS_DB_LOAD configuration variable.
Various DBMS systems use different mechanisms to generate unique identifiers. To make the
variations in DBMS systems manageable, MCS implements a reliable and consistent mechanism
to generate unique IDs.
✍ In most databases, the sequence is implemented with a table. In in other databases (such as
Oracle), the sequence is implemented with a built-in sequence that has the same name as
the table in the first type of database.
Currently, MCS uses the following identifier (ID) keys in your project database:
• CURRVAL
• INCR
• NEXTVAL
The next value (NEXTVAL) equals the current value (CURRVAL) plus the increment (INCR).
The INCR value is a default value. The relationship between the variables should always be
NEXTVAL = CURRVAL + INCR.
Example
You may decide to keep BUD_IDs in the range of 1 to 100000 for site 1, and 100001 to 200000
for site 2. This assumes that 100000 components would be an adequate representation of the
number of components modeled at a given site.
Based on the table at site 1, the BUD_ID_SEQ table at site 2 should be set as shown:
You can modify the CHECKOUT_ID_SEQ table, much like the BUD_ID_SEQ table, to
allocate ranges for the CHECKOUT_ID sequence.
• GROUP_CODE table
• GROUP_USAGE table
• USERS table
• ROLE_STATUS table
• STATUS_TRANSITIONS table
In the following sections, we will see how permissions for this user are controlled at
the commodity level and component level.
In the GROUP_USAGE table and GROUP_CODE table, we see the corresponding rows
that determine access control at the commodity level. The user's GROUP_ID controls
access at the commodity level.
GROUP_USAGE Table GROUP_CODE Table
As shown in the tables, our user belonging to the PIPE group has permissions for the
PIPE commodity only. (All other commodities are blocked.) That means that user
PIPE1_DESIGNER can perform MCS operations using piping components only.
The user's role (DESIGNER) controls access at the component level. Let us see the
corresponding rows in the tables that determine access control at the component level.
In the ROLE_STATUS table, we see that our user with the role DESIGNER has the
following valid statuses: STUDY and PRELIMINARY. In this example, these are valid
check-out statuses.
In the STATUS_TRANSITIONS table, we see that a component with the status STUDY
can be changed to the status PRELIMINARY and similarly, a component with the status
PRELIMINARY can be changed to IN_CHECKING. So our user PIPE1_DESIGNER1 who
has the role of DESIGNER has permissions to change the status to PRELIMINARY and
to IN_CHECKING upon checking in a component. This user would then be unable to
check the component out again because only STUDY and PRELIMINARY are valid
statuses for MCS Check-out. Presumably, the STATUS_TRANSITIONS table would have
another row going from IN_CHECKING back to PRELIMINARY in case the checking
process rejects the component.
This section applies if users are able to change the status while modeling within
TriForma.
✍ In the delivered project configuration, users cannot change the status through the
Label Edit utility. The only way to change the status of a set of components is by
using the Change Status tool.
If this workflow does not suit your project’s needs, then by setting the appropriate
APP_FLAGS value in the ATTRDEFN table, a user can be allowed to use the Label Edit
utility to change the status, presumably just before the check-in. The disadvantages of
this action are:
Users can check in and append only those components that have valid check-in
statuses, as previously explained. If the status is not valid, the following message is
displayed:
✍ Valid check-in statuses include a status that is not valid for the Check-Out
operation (status IN_CHECKING is not a valid status for a designer for check-
out).
The idea is that a user can check out a component and then after working on it the
component's status might change. That should not stop the user from checking in the
component as long as the changed status was a valid status as defined in the
STATUS_TRANSITIONS table. However, when the user checks in the modified
component with status changed to IN_CHECKING, this user has no more permission to
work on it as the component moves on to the next step, and a user with another role
(in this case a CHECKER) can work on it. Because the designer will not be able to
check out this component, MCS displays the following confirmation message:
The system can also apply a check-in filter to a user-defined attribute and reject
(meaning archive) all components with a non-valid value for this attribute. For
example in the delivered project, attribute DB_BUILD should have the value 2003 as
defined by configurations:
MCS_USER_VERIFY_ELEMENT_ATTRIB_NAME=DB_BUILD
MCS_USER_VERIFY_ELEMENT_ATTRIB_VAL=2003
In other words, if the component has the attribute DB_BUILD with values other than
2003, then that component will not be checked in. This feature can be used to guard
against checking in unintended components.
Check-Out Operation
BRANCH_CONN Table
For example, a sample BRANCH_CONN table looks like this:
This data shows that a component with BUD_ID 3 is connected to BUD_ID 2 on its
second snap point. Similarly, a component with BUD_ID 2 is connected to a
component with BUD_ID 3 on its second snap point. The component with BUD_ID 1
is not connected to any other component.
✍ The delivered BRANCH_CONN table uses the BUD_ID for efficiency because this
is a primary field that links other tables in your project database. A simple SQL
query can be used to get the line numbers or other information corresponding to
the BUD_IDs.
When users perform the standard MCS operations, the connectivity data in the
BRANCH_CONN table will be updated automatically. Therefore, no user procedures
apply to this feature.
W This tool assumes that no components are currently checked into the Model
Control System. If you have piping components checked in, you must follow the
next procedure to remove them.
W If you see error messages in the following text window, chances are that all piping
components were not deleted in the previous procedure.
✍ At the end of this process, the BRANCH_CONN table should have been
populated with connectivity information for all the existing piping components.
W Bypassing connectivity checking is not recommended because when you do this, the
data in your BRANCH_CONN table is not up to date. You then need to fix this
table using MCS, as explained in the next topic after this procedure.
✍ See the next section to find out how to fix the BRANCH_CONN table.
The BRANCH_CONN table data can become unusable due to one of the following
reasons:
W You should perform periodic checks to verify that the data is consistent between
these two tables.
The following programs are related to MCS and are used to customize MCS:
✍ For the configuration procedures, see “Using the Database Setup Tool to Build MCS Storage
Tables” on page 5-9.
✍ See “Procedures for Using the MCS Administrator Database Tool to Manage Your Project Database”
on page 5-13.
These permissions are configurable because they can be specified using SQL
statements in the configuration variables.
This tool uses the query file saved during the MCS Check-out operation to get the set
of components to operate on.
W The Change Status tool does not filter the components based on volumes and areas,
only on the queries for each commodity.
This enhancement provides work state controls so that when users commit a status
change, they cannot edit the data after the status has been changed. These controls
apply to file-based storage used by TriForma applications, as well as component-based
storage used by PlantSpace Design Series. The controls are in effect at each change in
status in the workflow from one user to the next.
✍ See “Procedures for Configuring the MCS Change Status Tool” on page 5-20.
W You should perform the following tasks early in your project life cycle when you are
setting up your database:
✍ You can perform the following tasks as needed anytime throughout the project life cycle:
For example, if an area of the plant is defined for the first floor turbine building, you
can perform piping isometrics, prepare material take off sheets, design orthographic
drawings, and perform 3D design and layout within this area of the model. For more
information about defining volume definition files and associated areas, see “Creating a New
Volume Definition File” in the section for users.
Working with the master volume definition file involves the following tasks:
Using the master volume definition file, MCS enables you to assign an area to each
component. When you create the areas in the master volume definition file, you must
use the following rules:
Usually someone familiar with the plant site assists in creating the master volume
definition file.
W After the master volume definition file is created, it must be loaded into the
database.
✍ The master volume definition file and the discipline volume definition files are created the
same way. For the procedure on creating a volume definition file, see “Creating a New
Volume Definition File” in the section for users.
To enable users to check in and check out project components through MCS, you must
load the master volume definition file into your project database by using the Database
Setup tool.
✍ Before you can load the master volume definition file, you must create a project database by
“loading” the project files into it.
✍ The settings for the data source, vendor, units, project user, and
project password are displayed from the default project
configuration. An initialization (INI) file is, therefore, no longer
required. The Connect button is grayed out because you are
connected to the project database.
2. Click the Load Volume File button.
The Load Volume Definitions dialog box is displayed.
3. Type the name of the file containing the master volume definition file,
or click the Browse button to locate the file.
4. Select the Clear Existing check box if it is not already selected.
Although you can add areas to the master volume definition file at any time during a
project, new areas should be added to the master volume definition file before
modeling components in those areas. The additional areas must follow the same
constraints as described earlier in this chapter.
W At the Project field, do not select New to add a new project. This field applies to
MicroStation applications only, not to TriForma applications.
3. From the MicroStation menu bar, choose MCS>Define Volume.
4. Create a new file and define the additional areas.
✍ For the procedure on creating a volume definition file, see “Creating a New
Volume Definition File” in the section for users.
5. In the TriForma program group, click the Database Setup icon.
✍ To refresh your memory, “From the Windows Start>Programs menu, locate the
TriForma program group and click the Database Setup icon.”
6. In the Database Setup window, click the Volume File button.
7. Type the name of the master volume definition file, or click the
Browse button to locate the file.
8. Deselect the Clear Existing check box.
W The Clear Existing check box should be deselected to retain the existing volume
definition files in the database while you add the new areas.
9. Click OK.
• If the volumes are overlapping and the load is not successful, a warning
message is displayed:
You can click Yes to load volume definitions into the table, or
click No to cancel the operation.
• If volumes overlap and you click NO, the following message is displayed.
• If the load is successful, the system displays a message indicating that the
table was successfully loaded.
W You must build the MCS storage tables before using MCS.
W If any changes were made to the component attribute definitions, you must build
the MCS storage tables before implementing MCS. The MCS storage tables are
<product>_BUD tables and DEL_<product>_BUD tables. If any modeled
components have been stored in MCS, these tables cannot be rebuilt with this menu
item.
Typically, you must rebuild the MCS storage tables when the component label attribute
definitions, such as contents of the ATTRDEFN table, are changed. The Build Storage
Tables operation in the Database Setup tool creates the set of <product>_BUD and
DEL_<product>_BUD tables, one set of tables for each distinct BUD_TABLE entry in
the CLASSES table. The columns of these storage tables correspond to the attributes as
defined in the STAND_ATTR table and ATTRDEFN table.
✍ If you are starting the Database Setup tool, see steps 2 through 5 of the procedure, “To start
the Database Setup tool”.
2. Click OK.
If reference file creationg is needed on your project, you can set a configuration variable so that
the Create check box in the Reference Files group is always enabled. Then, users cannot deselect
it to prevent creating reference files.
The user procedure where this setting pertains is “To check out components” on page 6-19.
ProceduresforAppendingaDesignFiletoMovefromFile-Based
Storage to Component-Based Storage
As your project grows, the Append tool enables you to move from a file-based storage system to
a component-based storage system. The Append operation adds your TriForma components
(stored in MicroStation design files) to your project database so that you can manage them with
MCS. The Append operation is also used to add files to MCS that were never checked in before.
Later, you can append or add other design files to your project database. For example,
you can upload a steel file (created from the SDNF import operation) into your project
database to enable MCS to control the use of the file and to provide users with a steel
model for design purposes.
W Only you as the administrator or another user under your guidance should use the
Append operation. Appending the same file repeatedly can result in putting
duplicate information into the database. You should also verify that the correct
master volume definition file has been loaded before appending a file.
✍ You can define a configuration variable to enable this operation on a temporary or long-
term basis.
4. If you are using a commodity that can be edited only on a design file
basis (such as Structural for TriForma, HVAC for TriForma, or
Architectural for TriForma), either:
• If you want all of the graphics stored, select the All Graphics check box.
• If you want just the items placed with an application, including the
TriForma EC, leave the check box blank.
5. Perform one of the following operations:
• To append the default file displayed to your project database, click OK.
• To append components from another file to your project database, click
the browse (<-) button, select the file from the Select File dialog box, and
click OK.
✍ Currently, Windows Internet Explorer 4.0 or above is required to use the MCS
Administrator Database Tool program because some of the features used are not
supported in Netscape.
W Before you begin, you should have installed Microsoft Data Access Components
(MDAC) version 2.1 or higher on your machine. It is available on the Internet at:
http://www.microsoft.com/data
5. At the Target field, place the cursor in front of the path displayed and
type the path to your Internet Explorer executable file (iexplore.exe).
✍ Use quotation marks to avoid an error message for spaces.
For example in Windows NT, your path might be:
“C:\Program Files\Plus!\Microsoft Internet\iexplore.exe”
✍ Be sure to leave a space between the end quotation marks and the
path displayed.
6. Click OK.
The default icon for the program changes to the Internet Explorer
icon.
Field Description
Data Source The name of the data source for your project database
Database The database vendor (Access, Oracle or SQL Server)
User ID Your login ID for this data source
Password Your password if required for the user ID
Unlocking Components
If a user has checked out a file and is not available to check it in, you can unlock the
file so that other users can check out the components that they had in the file.
➤ To unlock components
1. If the checked out information is not already displayed, follow the
steps in the previous procedure to display it.
2. Select the checkout_ID, which needs to be cleared from the drop-
down list.
3. Click the Clear Checkout button.
An attribute has been added to the ATTRDEFN table in the database after the
components were checked into the database. No column exists in the product BUD
table for that attribute. The MCS Administrator Database Tool adds a column to the
product BUD table to accommodate the new attribute.
Field Description
Name The name of the new attribute, which will become the column
name in the BUD table
Data Type The data type such as text, character, or number
Precision The column layout in the BUD table, as follows using Oracle as
an example:
• If the Data Type field is set to CHAR, the precision is the number
of characters needed for the attribute name (for example, 10).
• If the Data Type field is set to NUMBER, the precision is the total
number of digits in the number, a comma(,) for the decimal
point, and the number of digits after the decimal point. (For
example, 3,2 would mean n.nn or the total number digits is 3, of
which 2 follow the decimal point.)
Note: The Precision setting is required only for certain data
types such as CHAR or NUMBER.
Commodity The name of the BUD table for the commodity (such as
PIPE_BUD or STEEL_BUD) where the attribute will be added
After this table is loaded into the database, the formatted table will look like
this:
FROM_STATUS TO_STATUS
IN_STUDY IN_PRELIMINARY
IN_PRELIMINARY IN_CHECKING
IN_CHECKING IN_ANALYSIS
IN_ANALYSIS IFC
IFC IN_PROCUREMENT
IN_PROCUREMENT IN_CONSTRUCTION
IN_CONSTRUCTION AS_BUILT
2. Change the definitions of any of the rows to suit your project needs:
• Each row refers to a valid from-to status transition. The first entry in the data
section of the file is the current status or FROM_STATUS (for example,
IN_STUDY). The second entry is the changed status or TO_STATUS (for
example, IN_PRELIMINARY).
✍ You can add more rows of paired status transitions depending on your
project needs. For example, if for IN_STUDY, you want more changed
statuses besides IN_PRELIMINARY, you can add a second row specifying
IN_STUDY and a second new status.
• The delivered example queries this table to obtain all the valid status transitions, but
you can redesign this table and data entries as you want.
W If you use the delivered example, this table should contain all possible status
transitions that you need for your project. This table does not have to have all of
the possible transitions for the ISOCOORD role in the example. The columns
from different tables that will be joined in the SQL queries should have the same
character length (15 in the example).
W If the user is a Super User (set to Y (yes) in the USERS table), the Change Status
tool bypasses the "valid" transitions in this table and allows the Super User to
change the status of the current components even if the current status is not the
same for all the components.
3. Save and close the file.
4. Use the Database Setup tool to load the file into the database.
4. Use the Database Setup tool to load the file into the database.
• File-based storage
In file-based storage, MCS stores the DGN file. File-based storage mode is
required for applications that associate components to maintain the
associations between components within a model. You can extract the
components by entering the name of the design file.
• Component-based storage
In component-based storage, MCS stores the components. Component-based
storage mode is allowed for applications where all the components are
independent of one another, allowing for the creation of a model with any
arbitrary set of components.
✍ For details on these two modes of storage, see the chapter "Setting Up and Maintaining Your
Project Database" in this Guide.
Features
MCS enables you to:
The Define Volume Utility enables you to define rectangular areas of a project model and store
them in a file called a volume definition file. This capability enables a project to process portions
of the model by the predefined areas. For example, if an area of a plant is defined for the first
floor turbine building, then you can perform piping isometrics, material lists, orthographic
drawings, model access, and so on, on components within this area of the model. The area
coordinates are stored in files referred to as volume definition files. Two types of volume
definition files are used, master and discipline:
If you need to work with a particular component, the MCS User Database Tool enables you to
view which components are checked out by which users. You can then either contact the user to
see when the component will be checked in, or contact your administrator to unlock the
component if the user is not available to check it in.
The Change Status tool is a workflow enhancement tool that enables you (with the appropriate
permissions) to change the status of a set of components. By the same token, the Change Status
tool will also prevent you from changing the status without the appropriate permissions.
✍ This tool uses the query file saved during the MCS Check-out operation to get the set of
components to operate on.
✍ For details on setting up a master file, see the chapter “Creating the Master Volume Definition
File”.
2. Choose File>New from the menu bar, or click the New File tool.
The Create New Volume File dialog box is displayed.
3. Type a file name with a VOL extension, and specify the directory where you
want the file to reside.
4. Click OK.
The new file is opened in the VolEdit dialog box, and the file name is displayed
in the title bar.
➤ To add an area
1. With the volume definition file open in the VolEdit dialog box, click the Add
Area tool.
2. Place a data point for the first point in your design file.
3. Define the opposite corner of the area with a data point.
An extension to the VolEdit dialog box is displayed with the coordinates, as
shown in the example.
Extension
2. To save the file to a new file name, specify the file name and directory.
3. Click OK.
Editing an Area
You can edit an area in two ways:
2. To change the area name, at the Name field, type the new area name.
3. To type a new coordinate value, at the coordinate field(s), type the new
coordinate in working units.
4. To dynamically redefine the area, check the box next to the coordinate you
want to lock, and click the Low or High button to move the selection.
You can move specific points of the volume to create the size you want.
✍ If your configuration is not set up to use a text editor, the following message
is displayed. After you click OK, you will need to follow the next procedure
on selecting a text editor.
Manipulating Areas
Manipulating areas is useful for you, as a designer, because you can use a copy of the master file as
your discipline file and work with only those areas that pertain to your part of the project. The
tool bar in the VolEdit dialog box contains all the manipulation tools. Manipulating areas involves
the following operations:
(The Add Area operation is not listed here because it was covered earlier in the procedure on
adding an area.)
✍ For the procedures for these operations, make sure you have a volume definition file open
with the areas displayed in the list box.
W You must save the changes (from these operations) to the volume definition file or
they will be lost.
➤ To split an area
1. Select an area in the list box.
2. Click the Split Volume tool.
3. Select a corner from which to begin the split by snapping to the point and
accepting it with a data point.
4. Move the cursor horizontally or vertically to select a cross section along which
to make the split.
✍ The split cannot be diagonal.
5. Snap to the point, and accept it with a data point.
The area is split into two rectangular areas.
6. Click the Save File tool.
➤ To join areas
1. Select the areas in the list box that you want to join.
2. Click the Join Area tool.
The selected areas merge together and become one area.
➤ To delete an area
1. Select the area in the list box that you want to delete.
2. Click the Delete Area tool.
The area is deleted from the opened file.
3. Click the Save File tool.
➤ To move an area
1. Select the area in the list box that you want to move.
2. Click the Move Area tool.
3. Drag the area to a new position.
4. Click the mouse button to set the position.
5. Click the Save File tool.
➤ To copy an area
1. Select the area in the list box that you want to copy.
2. Click the Copy Area tool.
3. Use the mouse to position the copied area and click the mouse button to set
the position.
An extension to the VolEdit dialog box is displayed.
4. At the Name field, type the name for the copied area over the NEW default
name.
Procedures for Working with MCS and the MCS User Database
Tool
✍ If you want a visual overview of the way this program works before you start the
procedures, see “Appendix: Navigating within MCS and Related Programs”. Included is a
description of the fields and buttons in each dialog box.
Working with MCS and the MCS User Database Tool involves the following operations:
Before you check out components, you can choose to apply several component coloring options
or not to include volume indicators, or both, in the extracted model file(s).
Query Syntax
where means
ATTRIBUTE A valid attribute name
Note: The valid attributes come from the customizable attribute definitions. The
attribute name is displayed in the list box in the attributes dialog box for the Place,
Edit, and Read operations when the attribute is selected in the list box. The
attribute names are also in the attribute definition files and in the rimref.dat file.
OPERATOR A logical (Boolean) operator:
• EQ = EQUALS
• LT = LESS THAN
• LE = LESS THAN OR EQUAL
• GT = GREATER THAN
• GE = GREATER THAN OR EQUAL
• NE = NOT EQUAL
VALUE A numeric or string value
COMPTYPE EQ PELB
selects all elements whose label attribute COMPTYPE is equal to the string value PELB. Note that
elements with a COMPTYPE of PELB are piping elbows.
LINENO GT 5
selects all elements whose label attribute LINENO is greater than the numeric value 5.
You can combine query statements by using the Boolean operators, OR and AND, to more
precisely select the elements.
selects only elements whose LINENO is greater than 5 among all the elements whose
COMPTYPE equals PELB.
W Remember that as a result of your query, you also affect what other people can
query from the model. Because of this affect, you should keep your query as precise
and small as possible.
One situation where this warning is important occurs in retrieving equipment. The equipment
database contains both mechanical and electrical equipment. Therefore:
Selecting an option marks the option as being active, as shown in the option
No Locked Coloring.
• The Use check box is selected by the default setting. When it is selected, the system
assumes that you want to check out an area and will require you to do so when you
try to click OK.
• When the Use check box is deselected, the system assumes that you want to check
out all volumes and areas with your primary file.
• Two read-only check boxes inform users about the area being applied to the
primary file, reference files, or both. In checking out file-based storage commodities
(generic TriForma, ATF, STF, or HTF), the area filters are applied to the reference
files only. This is because these components need only one design file. In creating a
snapshot, the area filters are applied to the primary file as well. Behavior can be
summarized as follows:
Model based Area filters are applied to The Use (Areas) check box should
(generic TriForma, reference files only. be deselected.
ATF, STF, or HTF)
Component based Area filters are applied to Area filters are applied to primary
both primary files and files only.
reference files.
2. To specify a discipline volume definition file name, type the file name in the
File field of the Areas group or click the browse (<-) button to select a file.
✍ This step is not necessary for the master volume definition file. If the master
volume definition file has been loaded into the database (for use with
component storage), then this file is automatically selected and need not be
specified.
3. To specify one or more areas, either:
• At the Areas field, type the area(s) contained within the master or disciple volume
definition file selected, separated by a space or a comma.
• Click the browse (<-) button and select the areas.
4. In the Primary File group, type a file name or click the browse (<-) button to
select one.
✍ When you check out a primary file, the components are locked to prevent
other users from editing the components that you check out. The
commodities displayed in the list box are the only commodities that you are
allowed to lock based on your user name entered to connect to your project
database (in the MicroStation Connection dialog box).
When you take a snapshot, the components are not locked, which means
that other users can edit them. However, you will not be able to check in any
components that were edited.
If the selected commodity is a file-based commodity, a list of previously
checked-in file names is created. You can select one of these files or type the
name of a new file.
5. In the Primary File list box, select a commodity that you want.
You can select all the commodities in the list box by clicking the All button.
Every commodity that you select is marked with an X. You can also deselect all
of the selected commodities by clicking the None button, leaving all check
boxes blank.
6. To add a query to a commodity to further specify the type of components that
you want, perform the following operations.
out all of the components in the design file. If you select such a commodity, no
query field is displayed for it.
.
d. To build the query, select an attribute (for example, LINENO) and click the Next
button.
The system builds the query in a text box as shown by the example LINENO in the
next step.
e. Continue by specifying the following parameters and clicking Next:
• An operator
f. Click Finish.
7. Add queries to other commodities in the primary or reference files list boxes.
8. In the Reference Files group, leave the Create check box selected to create
reference files from the selected files, or deselect it to avoid creating reference
files.
You can select all the commodities in the list box by clicking the All button.
Every commodity that you select is marked with an X. You can also deselect all
of the selected commodities by clicking the None button, leaving all check
boxes blank.
9. At the Comment field, type any details to explain the check-out.
For example, your name, phone number, and purpose for the check-out. The
comments are saved in the HISTORY table for record keeping purposes.
10. Perform one of the following operations:
• Before clicking OK, if you want to save these check-out specifications, go to the
next procedure on saving a query file.
• If you do not want to save the check-out specifications, click OK.
As an alternative to using the graphical interface, you can use the following key-in from within
MicroStation to perform the Check-out operation:
2. For a query file, specify the file name with a QRY extension.
3. Specify the directory where you want the file to reside, and click OK.
3. Select the directory and query file that you want to load, and click OK.
The query information populates the fields in the MCS Design File Check-out
dialog box.
• For TriForma file-based storage, any graphics can be checked in as long as they
are in the primary model. To check in graphics, as well as the components, you
can select the "Retain Graphics that are not Forms" check box in the MCS
Design File dialog box.
• Drawing extraction files in TriForma and Structural for TriForma with the
extensions *.d, *.s, *.f, *.r, *.m, and *.e will not be checked in.
• Supplemental files in TriForma and Structural for TriForma with the
extensions *.tfb, *.hst, *.bak, *.log, and so on will not be checked in.
• Although you are encouraged to use sheet models (produced from Design
Series project models in version 8.0 or 8.1), they are treated as temp files in
component-based storage and will not be checked into MCS.
• Although you are encouraged to use Design History, the history file is treated
as a temporary file in component-based storage and will not be checked into
MCS.
2. If you are using a commodity that can be edited only on a design file basis
(such as Structural for TriForma, HVAC for TriForma, or Architectural for
TriForma), either:
• If you want all of the graphics stored, select the Retain Graphics that are not
Forms check box.
• If you want just the items placed with an application, including TriForma, leave the
check box blank.
3. Accept the file name displayed, type a different file name and path, or click the
browse (<-) button to select a file.
4. Click OK.
W If you are checking in components, MCS displays a warning that sheet model files
will be lost.
✍ If the components (elements) that you are checking in are not compliant
with those in your project database (for example, if they are not TriForma
components), or if you do not have permission to check in all the contents
of a design file, a message is displayed indicating the items that were not
checked in. So that you do not lose your data, the items are saved in a file in
a specified directory (for example, the default {network
drive}\projects\{ProjectName}
\notInAMS directory in Design Series). If you prefer not to save such files,
notify your administrator to remove the definition for the
PS_NOT_CHECKED_IN configuration variable in your application’s
project configuration file (for example, projvars.cfg file for Design Series in
the default directory, {network drive}\Projects).
W Whenever you perform the Update Database operation in MCS, the Undo buffer in
MicroStation is cleared. This means that you will not be able to undo commands
executed in MicroStation prior to the Update Database operation.
1. From the MicroStation menu bar, choose MCS>Update Database.
The MCS Design File dialog box is displayed. Update Database is the default
operation displayed in the Operation drop-down list box.
✍ You can switch to any of the other operations without having to return to
the Model Control menu.
The default file name displayed is the name of the current design file, as shown
in this example.
2. If you are using a commodity that can be edited only on a design file basis
(such as Structural for TriForma, HVAC for TriForma, or Architectural for
TriForma), either:
• If you want all of the graphics stored, select the Retain Graphics that are not
Forms check box.
• If you want just the items placed with an application, including the TriForma EC,
leave the check box blank.
3. Accept the file name displayed, type a different file name and path, or click the
browse (<-) button to select a file.
4. Click OK.
✍ The Retain Graphics that are not Forms check box does not apply in the
Update Reference operation.
2. Accept the file name displayed, type a different file name and path, or click the
browse (<-) button to select a file.
3. Click OK.
W Snapshot file creation does not involve commodity check-outs from your project
database. These files cannot be checked in to the model. They are throw-away files
and must be deleted by the user when they are no longer needed.
2. Because the procedure for taking a model snapshot is the same for the Check-
Out operation, follow the steps in the procedure “To check out components”.
W If TriForma commodities are selected for snapshot, then shared cell definitions
will be missing from the snapshot. You may see a warning message to this effect.
✍ In model snapshot mode, you can use the same additional operations that you use in check-
out mode. For these operations, see “Saving a Query File” and “Loading a Query File”.
✍ If you are not familiar with the RUNMCS command, you can view examples of its usage by
right-clicking runmcs.bat and selecting Edit > Notepad from the popup menu displayed.
W Before you can get data from the database in batch mode, your query criteria should
be saved in the MCS Checkout dialog box. Make sure that your query file works
properly on your design file using this dialog box.
1. At the Command Prompt, access the ...\Bentley\Program\TriForma
\mdlapps directory and type the following command:
runmcs -wc{path to your configuration file} -wp{ProjectName}
{file specification flags}
Where Means
-wc The flag for the path to your configuration file
Note: Leave no space between the parameter and the path.
-wp The flag for your project name. The delivered default project name
is psdstut.
Note: Leave no space between the parameter and the project name.
file The flag indicated by -i, followed by a capital letter, which the
specification system reads to include the files immediately following the capital
flags letter. Valid flags are explained in step 2.
W If any path in the command contains "Program Files", the command cannot
recognize the space in "Program Files". Enclose each argument (the
parameter+path+filename) in quotation marks (").
2. Using the following table, add each file specification flag consisting of
-i+capital letter+file name (with no spaces), and press <Enter>.
You can add multiple files after the first file by separating each with a space.
See the examples that follow this procedure.
Flag Description
-iQ<query-file> Q to define the name of the query file generated from the MCS
Checkout or Snapshot operation. MCS performs a checkout or
snapshot depending upon the query file. The location for the file
is specified by the configuration variable, {PS_PROJ}qry. The
default location is ...\{ProjectName}\qry.
-iD<database-to-use> D to define the data source (as alternatively defined by the
PS_CODES_DB configuration variable).
Format:"dsn-name;user;password"
-iJ<jsm-file> J to define the name of the JSpace object model file to:
• Import (with -iI explained below)
• Create from the MCS Checkout or Snapshot operation (with -IQ
explained above). The file will be created in the directory
specified by {PS_OUT}.
-iS<script-file> S to define the name of the script file containing additional
criteria (used by C++ applications)
-iL<log-file> L to define the name of the log file containing messages. The file
will be created in the directory specified by {PS_TEMP}.
-iI<jsm-file> I to define the name of the JSM file to import to your project
database through the MCS Append operation. The file will be
created in the directory specified by {PS_OUT}.
-iM<dgn-name> M to define the name of the design file to check in, append, or
use in the update database operation. The design file should be
in directory specified by {PS_OUT}. This flag is used with one
of the Check-in, Append or Update Database commands as
explained below.
-iC C to perform a Check-in on the model name provided by -iM
-iN N to perform an Append on the model name provided by -iM
-iU U to perform an Update Database on the model name provided
by -iM
-iP P to assume as if SupportModeler is active (loaded)
W You must use only the valid capital letters explained in step 2.
The MCS Design File dialog box is displayed. The default file name displayed
is the name of the current design file.
4. If you want all of the graphics stored, select the Retain Graphics that are not
Forms check box.
5. Perform one of the following operations:
W If you are appending components, MCS displays a warning that sheet model files
will be lost.
• To append the default file displayed to your project database, click OK.
• To append components from another file to your project database, click the browse
(<-) button, select the file from the Select File dialog box, and click OK.
➤ To access the MCS User Database Tool if the Internet Explorer is not your default
browser
✍ You can access the MCS User Database Tool program manually or automatically as follows.
1. To manually access the program, open Microsoft Internet Explorer, type the
following command in the address field, and press <Enter>:
...\Bentley\Program\triforma\mdlapps\admin.htm
✍ If \Bentley is not at the root of your hard drive, use the appropriate path to
this directory.
2. To set up automatic access to the program, locate the
...\Start Menu\Programs\MicroStation TriForma directory on your hard
drive.
✍ In Windows NT, the path is c:\WINNT\Profiles\All Users. In Windows
98, the path is c:\Windows.
3. Right-click MCS User Database Tool to display the popup menu, as shown,
and select Properties.
4. Select the Shortcut tab in the MCS User Database Tool Properties dialog box.
5. At the Target field, place the cursor in front of the path displayed and type the
path to your Internet Explorer executable file (iexplore.exe).
✍ Use quotation marks to avoid an error message for spaces.
For example in Windows NT, your path might be:
“C:\Program Files\Plus!\Microsoft Internet\iexplore.exe”
✍ Be sure to leave a space between the end quotation marks and the path
displayed.
6. Click OK.
The default icon for the program changes to the Internet Explorer icon, as
shown.
displayed.
Field Description
Data Source The name of the data source for your project database
User ID Your login ID for this data source
Password Your password if required for the user ID
The Results text box displays checked out, related information (such as who
has checked out which components with what Checkout_ID). This
information comes from the CHECKOUT table.
✍ The Change Status tool does not filter the components based on volumes and areas. It
filters components based on queries saved for each commodity.
W You need to start with a saved query file. Refer to the section “Saving a Query File”.
1. On the Windows Start > Programs > PlantSpace Design Series V8 XM
Edition menu, select the Status Tool icon.
✍ If you have more than one project, the Select Project dialog box is displayed.
After you select the project and click OK, you can continue.
2. At the Query File list box, select the appropriate query file.
As soon as a query file is selected, the system checks the components to make
sure that they can be updated. If all checks are successful:
• The From field will contain the current status of the components in the set.
• The To field will be populated with allowable new status values. After you select a
value from the list box in the To field, the Update button will become enabled.
The queries contained in the file are displayed in the Criteria text box.
✍ If any checks fail or a problem occurs with the update, appropriate error
messages will explain what happened. You will have to start this procedure
from step 4 after any problems are corrected.
3. At the To field, select the new status and click the Update button.
4. Perform either step:
• To re-use the same file, re-select the file from the drop-down list box (or press the
F8 key) and continue at step 3.
• To select another query file, select the file in the drop-down list box and continue at
step 3.
✍ If a new query file is created after the Change Status tool is started, you will need to refresh
the Query File field by closing and restarting the tool, clicking the refresh button, or
pressing the F5 function key.
Queries Menu
The Queries menu on the dialog box menu bar enables you to save the current state of
the dialog box settings or load a previously saved state.
Options Menu
The Options menu on the dialog box menu bar enables you to customize specific
features of extracted files.
Selecting an option makes that option active, as shown by the filled in radio button.
When you click the browse (<-) button by the Volume field in the Checkout Model
dialog box, the Open Volume File dialog box is displayed.
When you click the browse (<-) button by the Areas field in the Checkout Model dialog
box, the Select Areas dialog box is displayed.
of information that you want for that commodity. Clicking the Next button displays a
dialog box each for entering an operator, values, and a logical operator.
✍ If an error occurs during the execution of any of the Put Files operations, a copy
of the model file is left in a temporary directory. Periodically, you should examine
this directory and delete any files that you no longer need.
Add Area Add a new area to a volume definition file. For more
information, see the section VolEdit Extension Dialog
Box.
Delete Area Deletes an area
Copy Area Copies an area. For more information, see the section
Voledit Extension Dialog Box.
File Menu
The File Menu contains the same commands as those described in the previous table.
When you click the Add Area or Copy Area button in the VolEdit dialog box, the
following extension box is displayed.
Extension
A D
Access database 1-5 D_STATUS configuration variable 3-2
Append Operation Database Instance 1-2
Appending a design file to move from file-based Database Setup Tool 5-2
storage to component-based storage 5-11 Using to Build MCS Storage Tables 5-9
Guidelines 5-12 Database. See Project Database
ATTRDEFN Table 5-9 DB_BUILD configuration variable 3-2
DBSETUP_INFO Table 2-9
Define Volume Utility 5-1
B Navigating in A-1
Batch Processing in MCS 6-30 Understanding 6-2
BRANCH_CONN Table 2-17 DEL_BUD_CATALOG Table 2-9
BRANCH_CONN Table, description of 4-1 DEL_product_BUD Tables 2-6
BRANCH_CONN Table, fixing 4-4 Deleted Components, restoring 2-30
BRANCH_CONN_ACCESS Table 2-18 Discipline files. See Volume Definition Files.
BUD_CATALOG Table 2-7
BUD_ID Sequence 2-13, 2-33
BUD_ID_SEQ Table 2-13, 2-33 E
BUD_TABLE_ACCESS Table 2-7 EQUIP_BUD Table 2-6
C F
Cfgsite.dat file 2-32 File-based storage, moving to component-based stor-
Change Status Tool 5-2 age 5-11
Change Status tool 3-2, 3-4, 5-20, 6-3, 6-37
Change Status Tool, procedure 6-37
CHECK_OUT_ID Sequence 2-14 G
CHECKOUT Table 2-8, 5-18, 6-37 GROUP_CODE Table 2-15
CHECKOUT_HISTORY Table 2-8 GROUP_USAGE Table 2-15
CHECKOUT_ID Sequence 2-33 Guidelines
CHECKOUT_ID_SEQ Table 2-14, 2-33, 2-34 For the Append Operation 6-32
CLASSES Table 5-9 For the Check-in Operation 6-25
CNDT_BUD Table 2-6 For the Check-out Operation 6-18
COMPLENG attribute 2-5
Component-based storage, moving from file-based
storage 5-11 H
Configuration Variables in MCS 1-2 HGR_BUD Table 2-6
CONNECTORS Table 2-19 HGRPT_BUD Table 2-6
CORE_BUD Table 2-6 HISTORY Table 2-10, 6-23
HTF_BUD Table 2-6