Professional Documents
Culture Documents
Version 2009 R4
August 2012
DSPF1-PE-200074D
Copyright
Copyright © 2008-2012 Intergraph Corporation. All Rights Reserved.
Including software, file formats, and audiovisual displays; may be used pursuant to applicable software license agreement;
contains confidential and proprietary information of Intergraph and/or third parties which is protected by copyright law, trade
secret law, and international treaty, and may not be provided or otherwise made available without proper authorization from
Intergraph Corporation.
U.S. Government Restricted Rights Legend
Use, duplication, or disclosure by the government is subject to restrictions as set forth below. For civilian agencies: This was
developed at private expense and is "restricted computer software" submitted with restricted rights in accordance with
subparagraphs (a) through (d) of the Commercial Computer Software - Restricted Rights clause at 52.227-19 of the Federal
Acquisition Regulations ("FAR") and its successors, and is unpublished and all rights are reserved under the copyright laws of
the United States. For units of the Department of Defense ("DoD"): This is "commercial computer software" as defined at DFARS
252.227-7014 and the rights of the Government are as specified at DFARS 227.7202-3.
Unpublished - rights reserved under the copyright laws of the United States.
Intergraph Corporation
P.O. Box 240000
Huntsville, AL 35813
Terms of Use
Use of this software product is subject to the End User License Agreement ("EULA") delivered with this software product unless
the licensee has a valid signed license for this software product with Intergraph Corporation. If the licensee has a valid signed
license for this software product with Intergraph Corporation, the valid signed license shall take precedence and govern the use
of this software product. Subject to the terms contained within the applicable license agreement, Intergraph Corporation gives
licensee permission to print a reasonable number of copies of the documentation as defined in the applicable license agreement
and delivered with the software product for licensee's internal, non-commercial use. The documentation may not be printed for
resale or redistribution.
Warranties and Liabilities
All warranties given by Intergraph Corporation about equipment or software are set forth in the EULA provided with the software
or applicable license for the software product signed by Intergraph Corporation, and nothing stated in, or implied by, this
document or its contents shall be considered or deemed a modification or amendment of such warranties. Intergraph believes
the information in this publication is accurate as of its publication date.
The information and the software discussed in this document are subject to change without notice and are subject to applicable
technical product descriptions. Intergraph Corporation is not responsible for any error that may appear in this document.
The software discussed in this document is furnished under a license and may be used or copied only in accordance with the
terms of this license. No responsibility is assumed by Intergraph for the use or reliability of software on equipment that is not
supplied by Intergraph or its affiliated companies. THE USER OF THE SOFTWARE IS EXPECTED TO MAKE THE FINAL
EVALUATION AS TO THE USEFULNESS OF THE SOFTWARE IN HIS OWN ENVIRONMENT.
Intergraph is not responsible for the accuracy of delivered data including, but not limited to, catalog, reference and symbol data.
Users should verify for themselves that the data is accurate and suitable for their project work.
Trademarks
Intergraph, the Intergraph logo, PDS, SmartPlant, SmartMarine, FrameWorks, I-Convert, I-Export, I-Sketch, IntelliShip, INtools,
ISOGEN, MARIAN, SmartSketch, SPOOLGEN, SupportManager, and SupportModeler are trademarks or registered trademarks
of Intergraph Corporation or its subsidiaries in the United States and other countries. Microsoft and Windows are registered
trademarks of Microsoft Corporation. MicroStation is a registered trademark of Bentley Systems, Inc. Other brands and product
names are trademarks of their respective owners.
Contents
Preface .......................................................................................................................................................... 7
SmartPlant Foundation Product Documentation .................................................................................... 7
Documentation Comments ..................................................................................................................... 8
Introduction .................................................................................................................................................. 9
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 3
Contents
4 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Contents
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB) ................................. 139
Domains and Their Usage .................................................................................................................. 139
Adapter Documents ............................................................................................................................ 140
Roles and Message Access Groups ................................................................................................... 141
Administration Roles..................................................................................................................... 141
Authoring Roles ............................................................................................................................ 143
Data Warehouse Roles ................................................................................................................ 145
Integration Roles .......................................................................................................................... 146
Authoring Methods .............................................................................................................................. 146
Register Authoring Tool with SmartPlant Foundation .................................................................. 146
Framework Retrieve ..................................................................................................................... 147
Compare with Design Basis ......................................................................................................... 147
Compare with Latest Retrieved Data ........................................................................................... 148
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 5
Contents
6 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Preface
This document details how to configure the authoring and data warehouse models in
SmartPlant® Foundation and is one of a set of “How To” guides that describe how to configure
the various components of SmartPlant Foundation and the details of the underlying data model.
It can be used as a training guide to explore the configuration of the system and as a model
reference document. This document is intended for users who have used the SmartPlant
Foundation Desktop Client and have a good understanding of schema modeling techniques.
In describing the authoring and data warehouse models, this document refers to administration
objects such as methods and menus. Details on how to configure these objects can be found in
other administration guides.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 7
Preface
How to Configure the Infrastructure Model - Provides information for system administrators
on how to configure the infrastructure model in SmartPlant Foundation and describes the
underlying data model.
How to Configure the Line List Model - Provides information for system administrators on
how to configure the line list application in SmartPlant Foundation and describes the
underlying data model.
How to Configure Performance - Provides information for system administrators on how to
enhance the performance of SmartPlant Foundation.
How to Configure the Progress Model - Provides information for system administrators on
how to configure the progress model in SmartPlant Foundation and describes the underlying
data model.
How to Configure the Security Model - Provides information for system administrators on
how to configure the security model in SmartPlant Foundation and describes the underlying
data model.
How to Set Up and Configure SmartPlant Foundation - Provides information for system
administrators on how to set up and configure SmartPlant Foundation and describes the
underlying data model.
How to Configure the Workflow Model - Provides information for system administrators on
how to configure the workflow model in SmartPlant Foundation and describes the underlying
data model.
Documentation Comments
Send documentation comments or suggestions to PPMdoc@intergraph.com
(mailto:ppmdoc@intergraph.com?subject=documentation comments).
8 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 1
Introduction
SmartPlant Foundation authoring is all about using SmartPlant Foundation like any other
engineering tool to create and manage data in isolation from the approved plant model and
publish items to that model when ready to share it with the enterprise. Users can either create
data interactively and via loaders, like the Excel loader, or retrieve data published by other tools
such as SmartPlant P&ID, to form the basis of their design. The data can be published in a
number of ways, either on an ad-hoc basis directly from the item via its data sheet, or by first
creating a formal data sheet or list document for approval to control the scope of the data
published.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 9
Introduction
10 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Introduction
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 11
Introduction
The SmartPlant Foundation authored tag is in the authoring domain and is only visible when this
domain is turned on by the user's role, usually only when the user is creating and updating the
tags (such as an equipment list). It is then published to the data warehouse, and the tags are
loaded into the published domain, which creates new tags that are linked up to the shared
object. If other tools have published the same tag then it is linked by the same shared object.
During this process, the authored data is transformed into the SmartPlant schema format so that
it can be effectively managed.
The user logs into the data warehouse using a different role that exposes the shared and
published domains but not the authoring domain. Now the user sees the published data and
even if another user is logged in and authoring more tags, they do not see changes until that
user publishes them.
Data Warehouse
The user is working with a set publish domains that store the tools published data, the shared
domain linking them together and a set of core SmartPlant Foundation domains to create and
manage transmittals, documents, and so on. Note that this diagram shows data published by
two tools and also by a SmartPlant Foundation authoring application.
12 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 2
Component Schemas
A component schema is a subset of the SmartPlant Schema Class Definitions identified for a
particular task or discipline. Each tool has its own set of component schemas for published data,
and SmartPlant Foundation has additional component schemas for authoring and common data.
The component schemas are linked to domains as described later in this document.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 13
Authoring and Data Warehouse Overview
Schema Component
Not to be confused with a component schema, the Schema Component is a set of DLLs that
perform specific tasks centered on the various schemas used in the system. In authoring, the
Schema Component plays a central part in organizing the data that needs to be published and
retrieved. When data is published, it is the job of the schema component to load up the
component schema and map file and transform the data from the authoring component schema
to the data warehouse component schema.
SmartPlant Client
This is the GUI used for integration often referred to as the common UI. All tools including
SmartPlant Foundation authoring access the publish and retrieve dialog boxes when data is
exchanged between the tool (SmartPlant Foundation authoring, in this case) and the SmartPlant
Foundation data warehouse.
EFSchema
The key schema used for defining the data warehouse content is defined within the SmartPlant
schema. This schema contains all the component schemas that are used within the integration
environment.
14 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
Shared Domain
This domain can be considered the core domain of the data warehouse and is used to store all
published documents and hold all of the shared objects that point to all of the data that resides
in the published domains. When a tool publishes data, a document is created in this domain in
the specified configuration (Plant). Any files that are associated are also attached to the
document in this domain. At this stage the document is "unapproved". This attached data can be
directly loaded into the correct configuration or optionally loaded into a sub configuration so that
the data can be validated ("approved").
After approval, the data contained in the associated files is loaded into the necessary tool
domain, and a shared object is created in the shared object domain that point to the data in the
tool domain. A SameAs relationship issued when there is a common object used by multiple
tools, and rather than create a new shared object, a shared object that already exists is linked
instead.
In order to achieve this objective, all objects and relationships loaded into the published domains
also have a common interface (ISPFTEFPublishedItem) added that can be used for navigation
purposes.
Publish Domains
Each tool that publishes data into SmartPlant Foundation has a domain set up for it. The publish
domain is used to store approved and unapproved published data.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 15
Authoring and Data Warehouse Overview
The registration process also compares the authoring tool‟s schema release number against the
list of supported release numbers on the SmartPlant Foundation server. If the tool schema is
compatible, the tool is granted registration.
16 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
In summary, the tool using SmartPlant Client publishes a document that is stored within the
Data Warehouse shared domain until the appropriate action to load it is taken. This load process
is described below in the data warehouse process overview. Once the document has reached
this state, it is marked as now being retrievable by other tools. Providing the other tools have
been registered and the correct access to the document types has been configured, these other
tools can start retrieving this document (and the associated data).
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 17
Authoring and Data Warehouse Overview
18 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
Quick Find
To quick find an item in the data warehouse, the standard SmartPlant Foundation quick find
functions are configured on the shared object interfaces.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 19
Authoring and Data Warehouse Overview
Detail Form
The standard detail form functionality is used to navigate from the current shared object to the
associated Comprised Of tool object. SmartPlant Foundation then searches for the most
specific view definition that it can find and uses this view (along with the associated graph
definition) to gather up and display the data.
The shared object is not classified so there is no possibility for configuring different forms on the
shared object. It is also not possible to show data from the Comprised Of published data. For
this reason, a separate command has been configured to show the different published data.
Properties Grid
The role that the user has logged in to determines the information that is displayed in the
property grid when an object is selected. The system looks for a ViewDef on the most specific
interface of the shared object. If one is not found, then all the data is returned. To further control
which ViewDef is selected, the system filters ViewDefs based on owning groups related to the
object‟ interface. The ViewDef is filtered out if the interface is related an owning group that is not
in the user‟s role.
The properties grid displays all the data that it finds the ViewDef in all of the published domains
that comprise that shared object. Where inconsistencies are found, multiple values for the
properties are displayed.
20 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
History
The mechanism to display data for history is similar to the Properties window mechanism. This
uses a ViewDef in much the same way.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 21
Authoring and Data Warehouse Overview
Data Publish
A document and its files are published from the tool. The result of this publish is that a
SmartPlant Foundation three-tier document (master/revision/version) is created in the
DWShared domain in the project it was published to.
The associated files are stored at the tool schema version, which may not necessarily be the
same as the SmartPlant Foundation schema version. A relationship to an object
representing the SmartPlant schema is also created.
A workflow is set up to manage the process of getting the contents of the file loaded and
then merged into an approved area. This workflow can optionally trigger off a load into a
sub-configuration.
The user is able to log in to a particular configuration and view the documents that need
approval.
22 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
This task triggers a transform of the files if they are a different version to the current SmartPlant
schema version loaded. Once the transform is complete, a sub configuration is then created,
and the contents of the file can be loaded. At this stage, the data is unapproved.
Data Approval
The user is able to see the data that needs to be approved in the workflow step and is able to
change to that configuration. This can be done either from the main configuration selection
dialog box or from a shortcut menu on the document.
Using standard SmartPlant Foundation functions, the user can navigate the data in the domain.
The user can view that data using standard SmartPlant Foundation functionality such as the
details form, the properties grid area, ad hoc reporting as well as some of the navigation
functions.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 23
Authoring and Data Warehouse Overview
There is a new compare function that can be used to compare the data in the unapproved
configuration with the project or plant configuration.
24 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
Data Load
As a result of approving a step in a workflow, a process step is then run that triggers the load
and consolidate process into the same domain. The data is loaded into the plant and the sub
configuration is deleted.
Shared Objects
Whenever data is consolidated into a tool domain, such as PFD, a shared object is created in
the central DWShared domain. This object only instantiates one or two key interfaces and relies
on the relationship (SPFComprisedOf) to point to the real data.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 25
Authoring and Data Warehouse Overview
A shared document is created in the DWShared domain and linked to the full document that is
created in the publish domain. The document master is also related to the tool signature, which
is related to the plant and tool that the tool signature represents.
26 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
In order for the Same As relationship to be created, the data is first retrieved by the tool. In the
following diagram the dotted line between the document version and the signature represents
this relationship.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 27
Authoring and Data Warehouse Overview
SameAs Relationship
A SameAs relationship is created for a common part used by multiple tools. Rather than create
a new shared object, a shared object that already exists is linked instead.
When the data is re-published, a SameAs relationship to each object that originated from the
design basis (except the object itself) is created and sent to the data warehouse as part of the
published data.
28 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring and Data Warehouse Overview
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 29
SECTION 3
Authoring Model
This section describes the Authoring data model in more detail.
Registration Object
Registration associates a design tool with a SmartPlant Foundation plant. The registration
information is held in the database so that the system knows where to publish and retrieve data
for a particular configuration.
The registration object is created on registration along with two relationship definitions to the
configuration item and to a server object.
Details of the properties and functionality exposed by these interfaces are given in the following
sections.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 31
Authoring Model
SPFAuthRegistration Class
This class holds the signature and relationship to the configuration used when the tool was
registered.
ISPFAuthRegistration Interface
ISPFAuthRegistration is the primary interface of SPFAuthRegistration class, which is the object
that holds the signature as defined by the server.
The following properties are found on this interface.
ISPFServer Interface
This holds the URL to the data warehouse.
The following property is found on this interface.
32 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring Model
ISPFLocalServer Interface
This is implied by ISPFServer and used to distinguish a local server from a remote server.
Adapter Document
The adapter document class is used to store SmartPlant Foundation adapter files within the
SmartPlant Foundation database. Whenever a SmartPlant Foundation publish or retrieve is
invoked, the tool map file and the associated adapter header file are copied down to the client
for mapping to be performed. It is a revisable document comprised of a document master,
revision, and version called SPFAuthAdapterDocMaster.
This diagram does not show all the interfaces realized by the adapter document class
definitions, just the ones that are particular to these classes. For more details on the document
structure and other interfaces (such as ISPFDocumentObject), refer to How to Configure
Document Management.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 33
Authoring Model
The diagram shows the structure of the three-tier document consisting of the master, revision
and version, and a new file class. The adapter document is a non-published document as
indicated by the presence of the non-published document interfaces.
The adapter document is a classified document that realizes the ISPFClassifiedItem interface,
which holds the relationship to the document classification tree where an optional interface
ISPFAuthAdapterClass is used to identify the relevant classification and link to the ClassDef of
the document to create. For more information on classified documents, refer to How to
Configure Classified Objects.
Details of the properties and functionality exposed by the interfaces in the diagram are given in
the following sections. Only those specific to SmartPlant Foundation authoring are detailed
below.
ISPFAuthAdapterDocMaster Interface
This document master interface identifies the documents that are used to hold the tool map files
or the tool map adapter header files.
The following property is found on this interface.
SPFAuthAdapterFile
This is the file class definition used for holding the associated metadata for the Adapter mapping
and adapter header files.
The primary interface for this class is ISPFAuthAdapterFile, which does not expose any
properties. It also exposes the regular file interface. It realizes ISPFDBFile and its files are
stored in the database for easy delivery and portability.
ISPFAuthAdapterClass Interface
This interface is associated with the document class definition SPFDocumentClass. An Adapter
document should only be classified to the class tree if this interface is present. These are found
under the System Documents node of the document classification tree.
34 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Authoring Model
Design Basis
The design basis document class is used within SmartPlant Foundation to store the mapped
data that has been retrieved from the warehouse. These interfaces are realized on document
classes that represent a design basis. There is no default document class configured for this,
but it can be used for SmartPlant Foundation-based applications, such as Line Lists.
The SPFTEFRetrievedDesignBasis relationship is used to link the retrieve document to the tool
signature of the retrieving application.
PRCDesignBasisDocMaster/Revision/Version
This is an example of a delivered Design Basis document. This is the master class definition of a
three-tier document structure to hold the design basis data retrieved from the data warehouse.
This class definition is associated with the component schema ProcessDesignComponent which
is focused on defining classes for process engineering.
The primary interface for this class definition is IPRCDesignBasisDocMaster, which does not
expose any specific properties. The class also realizes the other standard document master
interfaces such as ISPFClassifiedItem, ISPFDocument, ISPFDocumentObject,
ISPFNonPublishedDocMaster and ISPFDocumentMaster.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 35
Authoring Model
Details of the properties and functionality exposed by these interfaces are given in the following
sections.
ISPFAuthPublishableItem Interface
This is used to identify that an item can be published.
The following property is found on this interface.
ISPFAuthPublishedItem Interface
This identifies that an item has been published. It is optionally realized on the published classes
and is instantiated when they are loaded.
The following properties are found on this interface.
36 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 4
The SmartPlant integration document and SmartPlant schema are complex objects. Each
consists of a master, revision, and version that are related by the SPFIncludesClass
relationship.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 37
Data Warehouse Model
Details of the properties and functionality exposed by these interfaces are given in the following
sections.
38 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Data Warehouse Model
SPFTEFPublishedDocMaster Class
This is the master class definition of a three-tier document structure for published data. This
class definition is associated with the component schema TEFComponent which is focused on
defining classes for data warehouse.
The primary interface for this class definition is ISPFTEFPublishedDocMaster, which does not
expose any specific properties. The class also realizes the other standard document master
interfaces such as ISPFClassifiedItem, ISPFDocument, ISPFDocumentObject,
ISPFNonPublishedDocMaster and ISPFDocumentMaster.
SPFTEFPublishedDocRevision Class
This is the revision class definition of a three tier document structure for published data. This
class definition is associated with the component schema TEFComponent, which is focused on
defining classes for the data warehouse.
The primary interface for this class is ISPFTEFPublishedDocRevision, which does not expose
any properties. As well as realizing this interface, the other interfaces that are realized by this
class definition are the standard revision interfaces such as ISPFDocumentObject,
ISPFDocumentRevision, ISPFNonPublishedDocRevision and ISPFWorkflowItem.
SPFTEFPublishedDocVersion Class
This is the version class definition of a three tier document structure for published data.
The primary interface for this class is ISPFTEFPublishedDocVersion, which is described below.
As well as realizing this interface, the other interfaces that are realized by this class definition
are the standard version interfaces such as ISPFDocumentObject, ISPFDocumentVersion,
ISPFNonPublishedDocVersion, ISPFExportableItem, ISPFFileComposition and ISPFOwnedObj.
ISPFTEFPublishedDocVersion Interface
This interface is used to identify a document version as being a published document and
exposes a number of properties which are used when data is published.
The following properties are found on this interface.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 39
Data Warehouse Model
SPFTEFPublishedFile Class
This is the file class definition used for holding the metadata for the files that the tools publish.
The primary interface for this class is ISPFTEFPublishFile, which does not expose any
properties. As well as realizing this interface, the other interfaces that are realized by this class
definition are the standard file interfaces such as ISPFFile, ISPFOwnedObj, ISPFRefFile,
ISPFBusinessFile, ISPFAlternativeRenditionComposition and ISPFMarkupCompositition.
Other interfaces attached to this class definition are in the following sections.
ISPFTEFXMLFile Interface
This interface is used to indicate that the associated file is a XML published file.
ISPFTEFToolDataFile Interface
This interface is used to indicate that the associated file is a XML published data file.
40 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Data Warehouse Model
ISPFTEFViewableFile Interface
This interface is used to indicate that the associated file is the viewable published file.
ISPFTEFInstructionFile Interface
This interface is used to indicate that the associated file is an instruction file. This typically is the
tombstone file.
ISPFTEFDocumentMetaDataFile Interface
This interface is used to indicate that the associated file is a meta data document file.
SPFTEFSignature Class
The SPFTEFSignatureClass is the class used within the data warehouse that stores the tool's
signature when it registers with SmartPlant Foundation. The primary interface is described
below and the tool data is added to ISPFTEFTool.
ISPFTEFSignature Interface
This interface identifies the associated object as being an integration signature object.
ISPFTEFTool
This interface is used to store tool data when a tool registers itself with SmartPlant Foundation.
The following properties are found on this interface.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 41
Data Warehouse Model
SPFTEFSchemaDocMaster Class
This is the master class definition of a three-tier document structure for holding schema data.
This class definition is associated with the component schema TEFComponent which is focused
on defining classes for data warehouse. With the model supplied, the only schema file
represented within the database is the .cmf file.
The primary interface for this class definition is ISPFTEFSchemaDocMaster, which does not
expose any specific properties. The class also realizes the other standard document master
interfaces such as ISPFClassifiedItem, ISPFDocument, ISPFDocumentObject,
ISPFNonPublishedDocMaster and ISPFDocumentMaster.
SPFTEFSchemaDocRevision Class
This is revision class definition of a 3-tier document structure for holding schema data. This
class definition is associated with the component schema TEFComponent which is focused on
defining classes for the data warehouse.
The primary interface for this class is ISPFTEFSchemaDocRevision, which does not expose any
properties. As well as realizing this interface, the other interfaces that are realized by this class
definition are the standard revision interfaces such as ISPFDocumentObject,
ISPFDocumentRevision, ISPFNonPublishedDocRevision and ISPFWorkflowItem.
SPFTEFSchemaDocVersion Class
This is a version class definition of a three tier document structure for holding schema data.
The primary interface for this class is ISPFTEFSchemaDocVersion, which is described below.
As well as realizing this interface, the other interfaces that are realized by this class definition
are the standard version interfaces such as ISPFDocumentObject, ISPFDocumentVersion,
ISPFNonPublishedDocVersion, ISPFExportableItem, ISPFFileComposition, and
ISPFOwnedObj.
ISPFTEFSchemaDocVersion Interface
This interface is used to indicate that the document version is for storing schema data. The
following properties are found on this interface.
42 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Data Warehouse Model
SPFTEFSchemaFile Class
This is the file class definition used for holding the schema files.
The primary interface for this class is ISPFTEFSchemaFile which does not expose any
properties. As well as realizing this interface, the other interfaces that are realized by this class
definition are the standard file interfaces such as ISPFFile, ISPFOwnedObj, ISPFRefFile,
ISPFBusinessFile, ISPFAlternativeRenditionComposition and ISPFMarkupCompositition.
The class also realizes ISPFDBFile which results in the schema (the .cmf file) being stored in
the database.
SPFTEFSchemaItem Class
This is a class that represents the main configurations within a .cmf file. Its primary interface is
ISPFTEFSchemaItem which is described below.
ISPFTEFSchemaItem Interface
The following properties are found on this interface.
SPFTEFQueue Class
SPFTEFQueue is the class used within the data warehouse that is created for a tool to control
the order by which associated published documents are loaded.
ISPFTEFQueue Interface
When a document is published, a relationship is set up to a “special” Scheduler queue object in
order for the correct files to be loaded in the sequence that they were published. The Scheduler
checks for this relationship whenever it attempts to start the load task. By using the date time
stamp on the relationship, the load order can be controlled.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 43
Data Warehouse Model
44 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Data Warehouse Model
Details of the properties and functionality exposed by these interfaces are given in the sections
that follow.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 45
Data Warehouse Model
ISPFTEFPublishInstruction Interface
The following properties are found on this interface.
Name Description
SPFTEFPIDocumentVersion Document version
SPFTEFPISignature Signature
SPFTEFPITargetWorkflowName Target workflow name
SPFTEFPISchemaVersion Schema version
SPFTEFPIOwningGroupName Owning group name
SPFTEFPIDocumentVersionUID Document version UID
SPFTEFPIObjectUIDSet Object UID set
SPFTEFPIDocumentCategory Document category
SPFTEFPIRelUIDSet Relationship UID set
SPFTEFPIDocumentSubType Document sub type
SPFTEFPIDocumentUID Document UID
SPFTEFPIDocumentMajorRev Document major revision
SPFTEFPIDocumentDescription Document description
SPFTEFPIProjectName Project name
SPFTEFPIIsToolDoc Tool document
SPFTEFPIDocumentName Document name
SPFTEFPIGenCorrelations General correlations
SPFTEFPIDocumentRevision Document revision
SPFTEFPIMovedObjectUIDSet Moved object UID set
SPFTEFPIRevisionSchemeName Revision scheme name
SPFTEFPIMovedRelUID Moved relationship UID
SPFTEFPIDocumentMinorRev Document minor revision
SPFTEFPIObjectUIDsInstructions Object UID instructions
SPFTEFPIDocumentType Document type
SPFTEFPIRelUIDsInstructions Relationship UID instructions
All of these properties are set in the background by the publish process within SmartPlant
Client.
46 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Data Warehouse Model
There is an execute method within the code, that acts upon the instruction, and carries out
some validation prior to the creation of a new publish document with its associated files.
IInstruction Interface
The IInstruction interface informs the code that the item needs to be processed as an instruction
rather than just being loaded. With the code, all interfaces that are a specialization of this
interface (in other words, the publish instruction described above) need to have a method added
within the code that executes the instruction.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 47
Data Warehouse Model
48 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 5
ToolParameters
This function reads the adapter header files and stores data in memory. It finds the relevant
adapter document using the SPFAuthAdapterCode property on the adapter document master.
The code to search for is identified on the publish and retrieve methods and so on.
GetPublishableDocTypes
This function reads the publishable document types that were originally defined in the adapter
header file and sets the required attributes in the SmartPlant Client.
PublishDocument
This function controls the generation of data when the OK button is clicked on the SmartPlant
Publish dialog box.
Calls are made to the following functions during execution of this function:
PopulateMetaDataContainer
ExpandToSecondaryItems
PopulateDataContainerForPublish
GetSameAsUIDsForPublish
If the OutputDebugFiles node is defined in the adapter header file, all generated files
used for publish will be saved in the user's TEMP folder.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 49
SmartPlant Foundation Authoring Adapter Details
PopulateMetaDataContainer
This function generates the metadata container for published data. If a view file is passed in as a
tool parameter, then this is added as a reference; otherwise, if the object has any view files
attached, these are added instead.
ExpandToSecondaryItems
This function uses the graph defined in the adapter header file to expand from the selected
items to all related items defined in the graph definition.
PopulateDataContainerForPublish
This function reads the tool map file and the source data and generates the data file to be
published. In order for classes and interfaces to be published, there must be SPFMapClassDef
entries in the tool map file. In order for a relationship definition to be published, a
SPFMapRelDef entry needs to be found, and for any property data that needs to be mapped
across, a SPFPropertyDef entry needs to be found. For enumerated values, all values
transferred regardless of a whether a mapping exists or not, but if mapping exists, the mapping
is used rather than an assumed mapping of one to one.
GetSameAsUIDsForPublish
This function extracts all the UIDs from the file that is being published and makes a call to the
authoring database to see if there are corresponding Same As items. If there are, these are
added to the data file that gets submitted for publish.
RetrieveDocument
This function controls the retrieval of data from the data warehouse. The key points about the
methods are:
1. A call is made to PreRetrieveData first (to allow for customization).
2. The domain of the document being retrieved is determined and subsequently stamped on
any properties instantiated as a result of the retrieve.
3. Key elements of the map file are read into arrays to improve performance.
4. The view file is downloaded if the RetrieveViewFile parameter is set to True in the adapter
header file.
5. The meta data file is read, and the document variables are stored away so that if a design
basis document is created later, it can be created with the same information as it is stored in
the data warehouse.
6. The data file is read, and if a mapping is found, a load file is generated in the authoring
schema. While the data is being processed, and if the item is a ClassDef (and is also
mapped), then a call is made to the function AutoExpandClassDef to allow for enhanced
mapping.
7. The tombstone file is read, and any delete instructions found are extracted. The Same As
objects are read and checked against the authoring database, and if any exist, a new delete
instruction (with the UID of the authoring item) is created and added to the file.
8. A call is made to PostProcessRetrievedObjects to allow for further customization if needed.
9. The data is serialized.
50 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SmartPlant Foundation Authoring Adapter Details
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 51
SmartPlant Foundation Authoring Adapter Details
<IMapObject/>
<IMapRelDef/>
</SPMapRelDef>
<Rel>
<IObject UID="PBSItemCollection.MapPpmUnitPBSItem"/>
<IRel UID1="PBSItemCollection" UID2="MapPpmUnitPBSItem"
DefUID="RelDefToMapRelDef"/>
<IMapRel MapEnd1IsEnd1="False"/>
</Rel>
52 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SmartPlant Foundation Authoring Adapter Details
3. Use the View > Tool Schema File option to view the contents of the map file. The
Properties tab gives a good overview of the contents.
4. Use the Edit Form tab to view further details and the Publish or Retrieve sub tab to view
the mapping details on an interface.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 53
SmartPlant Foundation Authoring Adapter Details
5. Use the Tools > Tool Schema > Validate > Display Results command to validate the tool
map file. Because the authoring schema and published schema are essentially the same,
the SmartPlant Foundation adapter can make a few assumptions, which means the tool
map schema does not need to be as fully defined as it does for other external tools. This
means that the following validation errors may be shown but they can be ignored:
MinCardinalityNotMet on
FromClassForMapRelDef_<<RelDefName>>
ToClassForMapRelDef_<<RelDefName>>
MapClassMapProperties_Name
MapClassMapProperties_Descriptions
ClassDefMapping
This is used to define the class mapping. Enter the ClassDef names in the relevant columns to
define the mapping.
InterfaceDefMapping
This is used to define the interface mapping including IObject. All mapped interfaces need to be
realized by their classes in the tool schema as defined next.
RealizesMapping
All mapped interfaces must be realized by their classes in the tool schema.
54 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SmartPlant Foundation Authoring Adapter Details
PropertyDefMapping
RelDefMapping
The RelDefs are mapped as above. End 1 is End 1 is set to True if the same objects is at End
1 on the RelDef in both the authored and published schema.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 55
SmartPlant Foundation Authoring Adapter Details
The Line List Application adapter header file also includes a ValidLineEndObjects section inside
the Retrieve section.
56 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SmartPlant Foundation Authoring Adapter Details
ToolComponentSchema
UID - This is the name of the authoring (tool) component schema that creates or publishes data.
ToolSchemaMapFile
Name - This is a reference to the corresponding map file, which is used for both the publish and
retrieve mapping. It finds the relevant tool map document using the SPFAuthAdapterCode
property on the tool map document master then it searches for an attached file of this name.
The code to search for is identified on the publish and retrieve methods.
DesignBasisComponentSchema
UID - This is the name of the design basis component schema.
QueryForInterface
Name - Used in conjunction with the FrameworkPublish client API. All items in the database that
need to be republished containing the specified interface and SPFAuthPublishableItem are
returned in the Publish dialog box.
ExpandUsingGraph
Name - Used in conjunction with all publish client APIs. This node specifies the graph to run on
single or multiple items selected in order to gather up all related items. For example, in the case
of a process instrument, the process points and process point cases are also included in the
publish file.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 57
SmartPlant Foundation Authoring Adapter Details
DocCategory
Name - To publish an object, an associated document needs to be created in the data
warehouse domain. This is the value of the DocCategory that is assigned to the associated
document.
DocType
Name - To publish an object, an associated document must be created. This is the value of the
DocType that is assigned to the associated document.
DocSubtype
Name - To publish an object, an associated document must be created. This is the value of the
DocSubtype (if required) that is assigned to the associated document.
DocTitle
Name - To publish an object, an associated document must be created. This is the value of the
DocTitle that is assigned to the associated document.
ComponentSchema or PublishToComponentSchema
UID - This is the UID of the target component schema in the data warehouse and is assigned at
the top of the file when the data is published. The node names of ComponentSchema and
PublishToComponentSchema can be used interchangeably. The PublishToComponentSchema
name was introduced for clarity.
DocumentToPublish
AutoCreate - The value of this field is either True or False and is used to determine whether a
dynamic document needs to be generated with relationship to the published items. The setting
depends on how the objects are to be published, and is used to determine how the published
document is inserted into the published data file for creation in the data warehouse.
If the object is to be published through its data sheet (IPD) then this option must be set to True
to dynamically create a document object in the published xml file.
If the object is managed in the authoring environment using a data sheet or data list document, it
is published through the document snapshot and the flag is set to False. The published
document snapshot (XML and view file) is inserted into the published file.
CreateDocRelsWithInterface - The value of this field is used in the adapter to create a
relationship between the newly created dynamic document and items in the publish file that
contain the named interface.
RelDefName - Name of the relationship to be created between the newly created dynamic
document and the item(s). This is typically NonDrawingItemCollection.
DocumentAtEnd - The value of this field is either set to 1 or 2 and indicates that the
relationship definition named above has the document at End1 or End2.
58 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SmartPlant Foundation Authoring Adapter Details
DocTypes/Document
Name - This is a field for reference only to help identify the corresponding UID.
UID - This is the UID of the DocType (or DocSubtype) that was referenced above. This UID is
used in the adapter code GetPublishableDocTypes.
DocClassDef - If a dynamic document is created from the selected item(s), this is the class
definition that it is created as in the data warehouse.
Other tools request the list of publishable document types allowed from the data
warehouse.
DocTypes/Document
Name - This is a field for reference only to help identify the corresponding UID.
UID - This is the UID of the DocType (or DocSubtype) that is used in the adapter code
GetRetrieveableDocTypes. The Retrieve dialog box only shows documents that have a
document type or subtype named
DocClassDef - When retrieving, this field is used for reference to make the file more readable.
Other tools make a request to the data warehouse to get the list of retrievable document
types.
OnRetrieve
Action - After a document has been retrieved, this field specifies the action that should take
place after the data has been mapped. The possible options are
DesignLoad (or Load) - Submits the mapped data directly to the Loader. The document
needs to be modeled in the schema and is identified by its classification in the
DesignBasisClassification.
DesignBasisLoad - Creates a design basis document and attaches the mapped data, the
delete instructions and any view files to it. The document needs to be modeled in the
schema and is identified by its classification in the DesignBasisClassification.
DesignBasisLoadAndCompare – Similar to action DesignBasisLoad, but launches the
Compare dialog box with the results.
Compare – Sends the results directly to the Compare dialog box. The data is not saved; if
the data is not accepted, then a full retrieve operation needs to be performed again.
Custom – Makes a call to a function called CustomRetrieveData that can be overridden.
DesignBasisClassification - If action DesignBasisLoad or DesignBasisLoadAndCompare is
selected, then the name of the document classification needs to be named. Knowing the
classification, the associated design basis master, revision, and version can then be determined
by expanding from the classification the SPFObjClassClassDef relationship.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 59
SmartPlant Foundation Authoring Adapter Details
OutputDebugFiles
If this node is added to theXML above a set of files is created in the user's TEMP directory
whenever a publish or retrieve function takes place.
Typically on Publish the following files get created
Publish_Data_<item name>.xml – Contains the data that has been mapped from the
authoring schema into the publish schema.
Publish_MetaData_<item name>.xml – Contains the document version and files details of
the published document that is created.
And on Retrieve the typical files would be
Retrieve_Data_Orig_<Domain>.xml – Original file of the publishing application.
Retrieve_Data_FilteredOrig_<Domain>.xml - Contains only the objects and relationships
that have been mapped in the format of the publishing application.
Retrieve_Data_<Domain>.xml - Contains the mapped data as will be sent to the loader or
saved into SmartPlant Foundation authoring
Retrieve_Tombstone_<Domain>.xml - Contains any instructions that accompany the data
retrieved.
ValidLineEndObjects
For more information, see the ValidLineEndObjects section of the Line List Adapter Document
topic in the How to Configure the Line List Model.
60 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 6
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 61
How to Extend the Integration Schema
If you move schema between the pseudo files or the CMF file, then you change its
ContainerID, this results in the deletion of schema from your SmartPlant Foundation database if
you also first load the file from which the schema was removed and use the Compare By
ContainerID option. When moving schema between files, Intergraph recommends that you first
load the files without the Compare by ContainerID option so that the schema is not deleted.
This updates the ContainerID on the relevant schema in SmartPlant Foundation, making
Compare by ContainerID possible on subsequent loads.
62 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Extend the Integration Schema
6. Click View > Schema (Active) > OK on the View Schema dialog box to view the schema.
See the Schema Editor User's Guide for more details.
It is now possible to add a pseudo file, merge in externally generated schema as a pseudo file,
and convert existing pseudo files to physical pseudo files.
Once the separate pseudo file has been created, it is necessary to attach the file to the
CMF_ver document.
Enter a new file name in the Name field. This must end in .xml in order to create the
configuration as a physical file.
Enter a description.
Do not select a starting configuration; this will make the configuration a primary
configuration rather than a pseudo-file.
Select the Configuration is pseudo file option.
Do not enter a path, and the pseudo file will be created in the same folder as the CMF
file.
Change the automatically generated ContainerID to one that reflects the file's usage.
See notes on ContainerID usage above.
Click OK.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 63
How to Extend the Integration Schema
2. Click Tools > Schema > Set Active Configuration to set up the correct configurations for
new objects, making sure the newly created pseudo file is selected.
3. Click File > Save > Schema File to save the schema files. This saves both the CMF file
with its new configuration header and the newly created physical pseudo file.
An alternative process to set the ContainerID for a newly created pseudo file:
1. Exit the Schema Editor.
2. Edit the newly created file in a text editor and manually set the ContainerID to something
that represents the schema usage (it defaults to a numeric value). This ContainerID is used
to identify schema previously loaded into the SmartPlant Foundation database when
performing the compare during load.
The next time the CMF file is opened, the ContainerID in the header is updated to match the
pseudo file.
The new schema can now be modeled in the Schema Editor, or pasted in to the physical
pseudo file.
Remember to attach the new pseudo file to the CMF_ver document in SmartPlant
Foundation.
64 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Extend the Integration Schema
2. Set the ContainerID for the newly created pseudo file as described above.
3. Click File > Save > Schema File to save the schema files.
Remember to attach the new pseudo file to the CMF_ver document in SPF.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 65
How to Extend the Integration Schema
1. Select the files that need extracting. In the example above, only the custom pseudo file is
selected.
2. Select the relevant configuration. For SPF 2009 R3 SP2, it is EF_2008_R3.
When you click Export, the files are generated at the output path indicated. The method
behind the shortcut menu option has different configuration options for path selection.
The CMF file exports to SCHEMA_EFSchema-Gen.xml.
The pseudo files export to SCHEMA_pseudofilename-Gen.xml
The export process also adds realized relationships on all ClassDefs for the following
interfaces because they are needed in SmartPlant Foundation and are unknown to the
integration schema:
ISPFTEFPublishedItem
ISPFClaimableItem
ISPFClaimedItem
ISPFTEFClaimedItem
ISPFTEFClaimableItem
ISPFMergableItem
ISPFMergedItem
66 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Extend the Integration Schema
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 67
How to Extend the Integration Schema
68 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 7
Overview
The Loader command allows you to process load files in order to add objects and relationships
to the SmartPlant Foundation database. The Loader connects with the data warehouse and acts
as a middle tier between various data sources and the calling program objects. Loader reduces
the number of load programs by reusing the calling program objects directly. Each authoring tool
loads different document types and associated data into SmartPlant Foundation to allow the
exchange of data between the various authoring tools, avoiding the duplication of data for each
tool.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 69
Plant Breakdown Structure for Integration Setup
Workflow
The update of the ClassDef of an object workflow is as follows:
1. The user creates an object in an authoring tool, for example named Object1.
2. The authoring tool updates Object1 with a ClassDef of ClassA.
3. The tool publishes Object1 into SmartPlant Foundation with a ClassDef of ClassA.
4. A SharedObject is created in SmartPlant Foundation to represent the tool object.
5. The user then updates the tool version of Object1 with a different Classdef, ClassB.
6. The tool then re-publishes Object1 with a new ClassDef of ClassB into SmartPlant
Foundation.
7. Upon publishing, the schema component determines that the classification of the object has
changed and generates an UpdateClassInstruction.
8. SmartPlant Foundation loads the new version of Object1 and detects the
UpdateClassInstruction.
9. SmartPlant Foundation updates the ClassDef of Object1 and updates the SharedObject
with the new Classdef, ClassB.
70 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
schema. However, you can use the Schema Editor to configure the default hierarchy in the
schema to meet your needs.
See Also
Work Process for Creating a Custom PBS Hierarchy (on page 72)
Define the Plant Breakdown Structure (PBS) Hierarchy in the Schema (on page 92)
Do not use special characters at all in any part of a plant name or plant breakdown structure
such as area or unit. These include ~ . + - = _ ! ? ' " , ; : & % @ # ^ * < > ( ) | [ ] {} / \.
A warning message that the characters are invalid is displayed if you use any special
characters.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 71
Plant Breakdown Structure for Integration Setup
The plant name must be unique within the current domain. This limitation is imposed by
SmartPlant Instrumentation.
Intergraph recommends that the SmartPlant Instrumentation domain schema name and
domain name match the plant name.
Intergraph recommends that the plant name be the same name across all authoring
tools.
You can use digits and spaces within the body of the plant name, for example Plant _1.
However, SmartPlant Foundation treats spaces exactly the same as underscores; so if
you name a new plant with a name that already exists, but use a space or an
underscore to differentiate, an error message will state it is already in existence. For
example Plant 1 and Plant_1 are treated as being exactly the same.
If you enter a space as the first character of your plant, area, or unit name, SmartPlant
Foundation allows you to register the plant. However, when you publish the Plant Breakdown
Structure (PBS), an error message is displayed. See SmartPlant Foundation Troubleshooting
Guide for further information.
72 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
Load the generated files into SmartPlant Foundation to load administration and schema data
and generate forms and menus.
Check out the existing PBS authoring adapter tool map schema and check in the PBS
authoring tool map schema that was generated.
Create a new plant.
Be sure not to create the plant until you complete all the previous steps in the
work process.
Create a host and vault and add the necessary publish interfaces needed for the vault.
Relate the new plant to a vault configured for integration.
See Also
Plant Breakdown Structure for Integration Setup (on page 70)
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 73
Plant Breakdown Structure for Integration Setup
4. Click the Query Scope on the Desktop Client status bar to validate that the plant(s) have
been removed.
5. After you load the files, log out of the Desktop Client, and recycle the Application Pools. For
more information on recycling the Application Pools, see the Recycling the Application
Pools section of Server Settings for SmartPlant Foundation Desktop Client in the Integration
Setup Guide.
74 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
3. Select a PBS Template from the drop down menu in the Select PBS Template dialog box,
and click OK.
The PBS hierarchy populates automatically in the Define PBS Hierarchy dialog box.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 75
Plant Breakdown Structure for Integration Setup
The Hierarchy2 through Hierarchy7 PBS templates match the delivered templates
available in SmartPlant Engineering Manager and SmartPlant Electrical.
6. Click OK.
7. Click File > Save > Schema File to save your changes to the SmartPlant schema.
8. Close the Schema Editor.
9. After you make changes in the schema, you must load the updated schema into the
SmartPlant Foundation database. See Load Schema Changes into the SmartPlant
Foundation Database.
76 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 77
Plant Breakdown Structure for Integration Setup
4. Click Next.
Schema Import Wizard compares the generated schema with the SmartPlant Foundation
database and displays the results. This process can take about 10 minutes.
78 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
5. Under Comparison Results, select all the items, and then click Next.
If the items were all successfully loaded, the status in the Load State column is set to
Loaded. If not, the status if either Passed or Failed.
6. Click Finish.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 79
Plant Breakdown Structure for Integration Setup
80 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
2. Right-click the CMF file version (CMF_Ver), and click Launch CMF File manager (PBS).
The component schema and prefix are populated from the associated method.
3. Select the Combined Authoring and DW database option.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 81
Plant Breakdown Structure for Integration Setup
4. Click Load.
82 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
You can unselect items that are not needed for export, but always include
PBSComponent and PBSDocument.
8. Click Export.
This operation generates the schema, some basic SmartPlant Foundation administration
operations, and a tool schema with mappings to the SmartPlant schema. This information is
contained within 7 files in the output directory.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 83
Plant Breakdown Structure for Integration Setup
Generate Forms
Load the SPF_03_AuthFormInstruction.xml file, and click Process. This will generate all
forms defined under the component schema.
84 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
Create a Vault
1. Click File > New > Administration > Vault in the Desktop Client.
2. Type a name and description for the vault.
3. In the Local path box, type the file location where you want the vault to be stored on the
SmartPlant Foundation server.
You must create the folder structure for your vault on the SmartPlant Foundation
server.
4. In the Sub directory property or name box, type
Obj->SPFFileComposition_12->SPFRevisionVersions_21->SPFDocumentRevisions_21.SP
FDocType. This property stores your published and non-published documents based on
document type.
5. In the Host list, select the host you created.
Do not set to local host.
6. Relate ISPFTEFPublishedDocVersion to the vault.
Click Find > Schema > Interface Definition. In the Find box, type
ISPFTEFPublishedDocVersion.
Drag the vault you created on to ISPFTEFPublishedDocVersion.
7. Relate ISPFNonPublishedDocVersion to the vault.
Click Find > Schema > Interface Definition. In the Find box, type
ISPFNonPublishedDocVersion.
Drag the vault you created on to ISPFNonPublishedDocVersion.
8. Relate the Owning Group to the vault.
Click Find > Administration > Vault to find the vault you created. Press CTRL and
drag the vault to the New Items window.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 85
Plant Breakdown Structure for Integration Setup
Create a Plant
1. Log into the Desktop Client.
2. Click File > New > Organization / Support Items > Plant.
3. Type the name of your plant based on the guidelines in Plant Naming Guidelines (on page
71).
4. In the Status list, select Active.
5. Relate the vault to the plant.
6. Click Find > Administration > Vault to find the vault you created.
7. Drag the vault to the plant in the tree view.
8. You must define role assignments for the new configuration.
Create a Unit
1. Click File > New > Organization / Support Items > Unit.
2. Type the name of your unit.
3. Pick the Plant created in the previous step.
4. Select New for Construction status.
Create a System
1. Click File > New > Organization / Support Items > System.
2. Type the name of your system.
3. Pick the Unit created in the previous step.
4. Select New for Construction status.
86 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
Testing
1. Click SmartPlant > PBS > Register.
2. Test the create, update and view functions of each item in the new structure.
3. Test the publish function.
Right-click the plant, then click Publish PBS.
Remember the PBS needs to be registered, and the Process Engineer needs to be
associated to the SmartPlantPublish and SmartPlantRetrieve roles defined in the database.
The new PBS is now ready to be retrieved by the authoring tools.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 87
Plant Breakdown Structure for Integration Setup
To activate a plant that has a status of Created, find the plant in the Desktop Client (Find >
Organization / Support Items), right-click the plant, and click Activate configuration.
88 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 89
Plant Breakdown Structure for Integration Setup
4. Click OK.
90 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 91
Plant Breakdown Structure for Integration Setup
4. Edit the PBS template properties on the Properties tab. You can edit the Category,
Description, Display Name, Schema Revision/Version, Help Context ID, Needs Further
Analysis, Analysis Comment, and By Customer fields on this tab.
Intergraph recommends you create the PBS hierarchy from a template. This workflow is
optional and should only be used if you intend to create a PBS hierarchy without using a
template. For more information on creating a PBS hierarchy from a template, see Define the
Plant Breakdown Structure (PBS) Hierarchy from a Template (on page 75).
1. After you check out the schema CMF file from the Desktop Client and launch the Schema
Editor, click Tools > Schema > Set PBS Hierarchy.
You can also click the Schema File button in the Workflows dialog box, and then click
Set PBS Hierarchy on the shortcut menu.
2. If you do not want to use the default PBS items in your hierarchy, click Delete Bottom
Relationship to delete the PBS items and relationships from the bottom up.
You cannot delete the Plant item at the top of the hierarchy. In the schema, the
top-level item in the PBS is always a plant. However, you can change the display name for
the plant.
92 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
3. To change the display name for the plant, type the new name in the text box in the Display
name column.
Because plant is always the top-level class definition in PBS hierarchy in the schema
even if you change its display name, you cannot use "Plant" as the name of another
object in the PBS hierarchy.
The recommended naming convention for the relationship between an item and its
parent is <Parent><Item>s, for example, SitePlants. However, you can name this
relationship any name that you want.
PBSHierarchy DirectedGraphDef is automatically created when you create the PBS
hierarchy.
6. Click OK.
7. Repeat steps 4-6 for each additional item that you want to add to the PBS hierarchy.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 93
Plant Breakdown Structure for Integration Setup
PBS hierarchy cannot be changed after it is created in the SmartPlant Foundation client.
94 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Plant Breakdown Structure for Integration Setup
9. In the Identify Configurations for Instructions dialog box, select the configuration or
configurations to which you want to apply the PBS changes. For example, if you want the
PBS structure to apply to both the 2007 and 2008 versions, select EF_2007 and EF_2008.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 95
Plant Breakdown Structure for Integration Setup
96 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 8
ViewDef Creation
Create a GraphDef and ViewDef to access all the properties and relationships that are to be
published. This should start on a unique interface of the objects being published, to include
relationships to PBS items, etc. It should also include the typing properties for the objects on the
IEquipment interface, of which 4 levels are usually sufficient.
To test the ViewDef, after it has been loaded in to SmartPlant Foundation, relate a Message
Access Group to it and run a new ad hoc report. This returns any objects of this ClassDef that
have already been published to this domain.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 97
How to Configure Excel Publish
Create the template document in SmartPlant Foundation and attach the file.
98 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure Excel Publish
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 99
How to Configure Excel Publish
The Tool Adapter Prog ID needs to be specified on the method as you would do in the
register method. This should be set to SPFAdapter.TEF.Adapters.ExcelAdapter.
The alternative is to unselect the option to not automatically register the tool and create a
separate registration method as described in Configuring Publish for Authored Data (on page
122). The Tool Adapter Prog ID should be set to SPFAdapter.TEF.Adapters.ExcelAdapter.
100 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 9
The following diagram shows a typical structure for when the document is also acting as the list
control object and the data items are related to the document revision. The document is the
container for the data and is used to manage the list editing as well as the publish.
The published schema includes a published document and a published equipment item. When a
SmartPlant Foundation publishable document is created in the authoring environment, a shared
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 101
How to Configure SmartPlant Foundation Authoring
document is also created in the data warehouse shared domain. When the document is
published, it is created in the publish domain and linked to the shared document. The diagram
below shows a typical configuration for a simple published equipment list and how they are
related.
102 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 103
How to Configure SmartPlant Foundation Authoring
The optional interfaces on the shared object are used for quick find only, and the details about
the object are stored on the associated published items. When viewing objects in the data
warehouse, they are dynamically consolidated to display the latest values of the published data
that is associated to the shared object.
The optional interfaces instantiated as published objects are loaded based on a relationship
between an interface on the published object and the shared object. The relationship definition
to control the creation of optional interfaces is SPFTEFSharedMappedInterface.
For the equipment list, no new interface is added to the shared object. The following optional
interfaces are already on the shared object:
ISPFTEFSharedArea Shared Area
ISPFTEFSharedEquipment Shared Equipment
ISPFTEFSharedInstrument Shared Instrument
ISPFTEFSharedPipeRun Shared Pipe Run
ISPFTEFSharedPipeline Shared Pipeline
ISPFTEFSharedPipingComponent Shared piping component
ISPFTEFSharedPlant Shared Plant
ISPFTEFSharedProcessCaseData Shared Process Case Data
ISPFTEFSharedSimulatedFacility Shared Simulated Facility
ISPFTEFSharedSimulationModel Shared Simulation Model
ISPFTEFSharedStream Shared stream
ISPFTEFSharedUnit Shared Unit
For example, the published equipment list schema uses the IEquipment interface that is related
to the ISPFTEFSharedEquipment interface.
104 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 105
How to Configure SmartPlant Foundation Authoring
Now the EFSchema-Gen.xml schema file and exported pseudo files can be loaded into
SmartPlant Foundation.
106 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFCoreDocMgtSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFDesignDocumentSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFDocumentClaimSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFListDocumentSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFProgressSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFDatasheetDocumentSchema.xml!N
`AS`<INSTDIR>\Models\Core\SCHEMA_SPFDatasheetSchema.xml!N
`AS`<INSTDIR>\Models\Common\SCHEMA_Common_WBS.xml!N
`AS`<INSTDIR>\Models\Auth\SCHEMA_Auth-General.xml!N
`AS`SCHEMA_PpmPASchema.xml!
`ActS`SCHEMA_PpmPASchema.xml!Y
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 107
How to Configure SmartPlant Foundation Authoring
108 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
The End 1 is End 1 is set to FALSE because the PpmUnitPBSItem has the Unit as the
first object in the relationship and the PBSItemCollection has the Unit as the second object in
the relationship.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 109
How to Configure SmartPlant Foundation Authoring
Configuring Domains
Before any schema can be utilized in SmartPlant Foundation, a domain has to be configured to
persist any objects that are created with that schema. For SmartPlant Foundation authoring, two
domains are required, one to hold the authored data as it is created and one to hold the data in
the data warehouse after it has been published. As described in the model sections above,
schema classes are related to a domain through their component schema.
Remember that if you want to export the administration as a single file later, set the default
container ID in the user preferences before you start.
110 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
IPpmPAEquipListDocMaster
ClassDef used for the equipment list document that realizes the following interfaces:
IObject
IPpmPAEquipListDocMaster Primary interface
ISPFClassifiedItem This is a classified document. There
needs also to be a RelDef to link the
equipment ClassDef to the classification
tree, for example,
PpmPAEquipListDocClassClassDef.
See the classified document note
below.
ISPFDocument
ISPFDocumentMaster
ISPFDocumentObject
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 111
How to Configure SmartPlant Foundation Authoring
IPpmPAEquipListDocRevision
IPpmPAEquipListDocRevisionClassDef uses for the equipment list document that controls the
publish process and realizes the following interfaces:
IObject
IPpmPAEquipListDocRevision Primary interface
ISPFAuthPublishableDocumentRevision Controls document publish with the
following properties
SPFAuthPublishableToolID Domain of the authoring tool
SPFAuthPublishableTargetClassDef Target ClassDef for the published
document
ISPFDocumentObject
ISPFDocumentRevision
ISPFListDocRevSnapshot Controls the snapshot process with the
following properties
SPFSnapshotDataGraphDef Optional GraphDef to control the publish
file generation
ISPFListEditControl Controls the list edit process and
snapshot creation with the following
properties
SPFClassDefForNewRelatedItems ClassDef to use for new items (list edit)
SPFColSetToDisplayRelatedItems Complete column set to use for displaying
related items (list edit and snapshot)
SPFDeleteActionForRelatedItems Delete action for related items (list edit)
112 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
ISPFAuthPublishableDocumentRevision
This interface holds key properties that are used when a publishable document is created or
revised in the authoring environment as it also reserves the document in the data
warehouse for publishing later. The SPFAuthPublishableToolID property holds the authoring
tool domain and is used along with the current create configuration to find the tool
registration details to know where to create the reserved document. The document
reservation is performed by creating a reserved SPFTEFPublishedDocMaster in the
DWShared domain. The SPFAuthPublishableTargetClassDef contains the published
document, for example, PpmPPDocument, and this is written into properties on the reserved
document for later use.
In previous SmartPlant Foundation releases, the ISPFLLALineListRecordDocumentRevision
interface was also required to support the population of the properties on these two
interfaces on creation of the document, in some circumstances as described in detail below.
This was a temporary measure to make use of line list editing capabilities but this has now
been made generic with the release of SmartPlant Foundation 2009 R3 SP2.
IPpmPAEquipListDocVersion
The ClassDef used for the equipment list document snapshots files that realize the following
interfaces:
IObject
IPpmPAEquipListDocVersion Primary interface
ISPFDocumentObject
ISPFDocumentVersion
ISPFExportableItem
ISPFFileComposition
ISPFNonPublishedDocVersion
ISPFOwnedObj
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 113
How to Configure SmartPlant Foundation Authoring
PpmPAEquipList
ClassDef used for the equipment list from which the list editing is configured that realizes the
following interfaces.
This is not actually published, it does not need the ISPFAuthPublishableItem and
ISPFAuthPublishedItem interfaces.
IObject
IPpmPAEquipList Primary interface
Form Generation
Find the ClassDef and use the Generate Form on the right-click menu to build the default form.
114 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Typically include the top typing properties and some key equipment properties.
Relate the column set to an interface on the equipment class
Specify this Column Set on the QFind method
For the column set to be picked up after relationship expansions from other objects, it
has to be related to an interface with a specialization value. Core interfaces have
specialization values but new ones, such as the IPpmPAEquipment primary interface,
do not. Set the value to a high value such as 4000, it must be higher than the values of
the other interfaces on the class for the column set to be picked up. The specialization
value can be added in the SpecializationValues.xml file in the Site Server directory (for
example the Product Directory).
Classified Equipment
If the equipment items are classified, there are a number of additional tasks required. These are
described in detail in the How To Configure Classified Objects Guide but the basics are included
here for convenience.
The equipment create methods need to use the classified object API as detailed below.
An additional classification tree node might need to be defined for the equipment but
generally the standard ones are used.
The equipment ClassDefs need to be related to the classification nodes. This can be done
by dropping the equipment classdef version classdef on the relevant classification tree node.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 115
How to Configure SmartPlant Foundation Authoring
116 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Method PpmPAListEdit
Delete action Terminate
Colum Set PpmPAEquipmentListEditCS
List Management Relationship
Definition +PpmPAEquipListDocRevEquipment
List Management Create Method MTH_PpmPAEquipListDocCreate
List Management Button Caption Document…
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 117
How to Configure SmartPlant Foundation Authoring
The optional property SPFSnapshotDataGraphDef may also need to be populated if the column
set does not contain all data to be published as described above.
118 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
ISPFAuthPublishableDocumentRevision.SPFAuthPublishableToolID.ProcessD~
ISPFAuthPublishableDocumentRevision.SPFAuthPublishableTargetClassDef.PpmPPDocument
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 119
How to Configure SmartPlant Foundation Authoring
120 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
a. Change the name and UID of the document master, revision and version consistently.
The names of the document master, revision and version must be the same (for
example, IPD Map Schema) and it is recommended that the UIDs contain
master/revision/version and so on (for example, ToolMapSchema_IPDVersion).
b. Change the name and file name of the SPFAuthAdapterFile object to match the tool
map schema file name.
c. Update the relationships matching the changing UIDs of the document and file.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 121
How to Configure SmartPlant Foundation Authoring
Domain
This is the name of the authoring domain in which the data will be instantiated. For example,
ProcessD. When the comparison is made, the UIDs contained in the file are checked against the
authoring database in the domain specified.
Adapter Code
This is the code used to represent the SmartPlant Foundation tool and is used to find the
relevant adapter document via its adapter code property value, for example PA.
Database Code
This enables SmartPlant Foundation to publish and retrieve from a different database, but it is
not supported at this time so this argument is left blank.
122 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
The register method should be exposed through the SmartPlant menu. It is recommended that
a new sub-menu is created for each application as shown below.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 123
How to Configure SmartPlant Foundation Authoring
Method PpmPAEquipmentListDocPublish
Domain ProcessD
Method PpmPAEquipmentListDocPublish
Adapter Code PA
Publish by Query
The FrameworkPublish ClientAPI publishes data from the authoring database to the data
warehouse. It is a stand-alone method that searches for all objects with the interface
ISPFAuthPublishableItem, where the SPFAuthNeedsRepublishing property is set to False.
Client API details:
API Name FrameworkPublish
Description Publish
Arg 1 Tool adapter prog ID (see above)
Arg 2 Domain (see above)
Arg 3 Adapter Code (see above)
Arg 4 Database Code (see above)
Several methods have been configured using this client API and are supplied with the core
delivered data warehouse database. These are detailed in the OOTB section later in this
document.
124 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Configuring SkipFailedDocuments
The SkipFailedDocumentsInLoad setting in the web.config allows you to skip a published
document that failed during a load or consolidate task and continues processing other
documents in the queue. SkipFailedDocumentsInLoad can be set using the site settings in
Server Manager. You can set SkipFailedDocumentsInLoad to True to skip a published
document that failed or select False to continue without skipping the failed document. The
default setting is False.
Load and consolidate tasks is related to, and are handled with, a single
ISPFTEFQueueSchedulerTask scheduler task.The scheduler task continuously polls the
queue for the next document that is ready for loading. When a document is the first item on the
queue, and has load and consolidate statuses of Queued, the document is processed. Unless
SkipFailedDocuments is set to True, the next document in the queue is the first document
without a failed load or consolidate status.
When SkipFailedDocumentsInLoad is set to False, the queue stops processing documents
when 1 document on the queue has failed. A document has failed if it has a failed load,
consolidate or merge delta status.
If SkipFailedDocumentsInLoad is set to True, the queue continues to process documents if
previous documents have failed. Any previously failed document versions are removed from the
queue, if a later version successfully loads.
For additional details on Load Queue Management, see Load Queue Management in the
Desktop Client User's Guide.
For additional details on setup in Server Manager, see Create and Configure SmartPlant
Foundation Sites in the Server Manager User's Guide.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 125
How to Configure SmartPlant Foundation Authoring
126 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Retrieve Document
The FrameworkRetrieve Client API is used to retrieve data from the data warehouse to
authoring.
In order to configure a method to retrieve data from a SmartPlant Foundation data warehouse, a
method referencing the FrameworkRetrieve client API needs to be set up. As this is a method
that is invoked from the main menu, a menu item and the necessary relationships should also
be configured.
API Name FrameworkRetrieve
Description Retrieve
Arg 1 Tool Adapter Prog ID (see above)
Arg 2 Domain
Arg 3 Adapter Code (see above)
Arg 4 Database Code (see above)
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 127
How to Configure SmartPlant Foundation Authoring
Domain
This is the name of the authoring domain into which data is retrieved. This is different from the
publish methods that identify the publish domain. In other words, this argument always identifies
the domain in which data is instantiated.
This method will work without further configuration only if the OnRetrieve Action in the Adapter
Header file is set to one of the following:
DesignLoad Transforms and loads the data directly into the
authoring environment
Compare Same as for DesignLoad but the Compare dialog
box is presented first.
The other actions available require the creation of a design basis document.
The method to retrieve the equipment list tool would be:
Method PpmPARetrieve
Description Retrieve Data
API Name FrameworkRetrieve
Tool Adapter Prog ID SPFAdapter.TEF.Adapters.SPFTEFAdapterGEN
Domain ProcessD
Adapter Code PA
Adapter Code
This method works without further configuration only if the OnRetrieve Action in the Adapter
Header file is set to one of the following:
DesignLoad Transforms and loads the data directly into the
authoring environment.
Compare The same as for DesignLoad but the Compare
dialog box is presented first.
The other actions available require the creation of a design basis document.
128 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
ISPFDocument
ISPFDocumentMaster
ISPFDocumentObject
ISPFNonPublishedDocMaster
The document revision realizes a primary interface and the following standard document
interfaces:
IObject
ISPFDocumentObject
ISPFDocumentRevision
ISPFNonPublishedDocRevision
ISPFWorkflowItem
The document version realizes a primary interface and the following standard document
interfaces:
IObject
ISPFDocumentObject
ISPFDocumentVersion
ISPFExportableItem
ISPFFileComposition
ISPFNonPublishedDocVersion
ISPFOwnedObj
A dedicated file class is configured that realizes a primary interface and the following standard
document interfaces:
IObject
ISPFAlternateRenditionComposition
ISPFBusinessFile
ISPFDesignBasisFile
ISPFFile
ISPFMarkupComposition
ISPFNavigationFileComposition
ISPFOwnedObj
There is no need to configure any create method as these documents are created on retrieve. It
is usual to create a QFind menu option based on the document revision primary interface.
The documents are classified which means a document category needs to be created under the
System Documents node, for example Retrieved Process Document.
To utilize the design basis document, the adapter header file to be edited:
Set the DesignBasisComponentSchema UID, for example ProcessDesignComponent
Set the OnRetrieve Action to
DesignBasisLoad - Creates a design basis document and attaches the transformed
data, the delete instructions, and any view files to it.
DesignBasisLoadAndCompare - Similar to action DesignBasisLoad, but launches the
Compare dialog box with the results.
Set the DesignBasisClassification to the document category of the document, for example
Retrieved Process Document.
As well as comparing the incoming data on retrieve, various compare methods can be
configured to compare data on the shortcut menu of the design basis document.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 129
How to Configure SmartPlant Foundation Authoring
Tool Domain
This is the name of the authoring domain into which the data is instantiated. When the
comparison is made, the UIDs contained in the file are checked against the authoring database
in the domain specified.
Adapter Code
Adapter code or document type that is used to identify the map file.
130 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Assembly Name
This is the name of the compare assembly that is loaded to perform the compare operations and
is usually SPFCompare.dll.
Class Name
This is the code class that processes the compare and is typically
SPFCompare.TEF.Compare.SPFCompareClass.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 131
How to Configure SmartPlant Foundation Authoring
Name LatestVersionsContainingDrawingItem
Display As Latest Versions Containing Drawing Item
Start IDef IDrawingItem
Path -DrawingItems,-DwgRepresentationComposition,-SPFTEFCom
prisedOf,+SPFDocumentRevisions,+SPFRevisionVersions
Name NonDrawingItemCollection12
Display As Items In Document
Start IDef INonDrawingItemCollection
Path -NonDrawingItemCollection
Name NonDrawingItemCollection21
Display As Documents
Start IDef INonDrawingItem
Path +NonDrawingItemCollection
132 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
To navigate a special edge definition, the pre-expansion RelDef is expanded first, then the
normal RelDef is expanded, after which the post-expansion RelDef is expanded.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 133
How to Configure SmartPlant Foundation Authoring
Use the InconsistencyReportWithStartingObject Client API client API to configure the report to
be run from any object that has shared objects related to it. Valid objects include published
documents and configuration items, such as plants, areas, or units.
The method arguments of both client APIs are listed below.
Freeze Columns If true, have static columns in the report. Boolean True
Show Inconsistent If true, show only inconsistent properties Boolean False
Properties Only for all objects.
Show Inconsistent If true, show only objects that contain Boolean True
Objects Only inconsistent properties but show all
properties for the object.
Portrait View If true, the properties appear down the Boolean True
page. If false, the properties appear across
the page in landscape fashion.
134 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Portrait View If true, the properties appear down the Boolean True
page. If false, the properties appear across
the page in landscape fashion.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 135
How to Configure SmartPlant Foundation Authoring
136 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
How to Configure SmartPlant Foundation Authoring
Create a new Datalist Definition to link the ViewDef, template document and ClassDef to
create the following definitions:
Check out the template document and run Data Sheet Definer to map the ViewDef
properties to the Excel cells.
Check in the template document.
Test the load using the File > Excel Import > Excel Import command.
Configure specific Excel Import methods if you want to control which user loads what
type of template and uses Compare, and so on.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 137
How to Configure SmartPlant Foundation Authoring
Create a new Datalist Definition to link the ViewDef, template document and ClassDef to
create and enter the publish details:
Check out the template document and run datasheet definer to map the ViewDef
properties to the Excel cells.
Check in the template document.
Test the load using the SmartPlant > Excel Publish option.
Configure specific Excel Publish methods if you want to control which users publish
what type of template, and so on.
138 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
SECTION 10
SPFREFERENCE
This is a common domain. It contains classes for objects, such as the classification trees, that
are used in both SmartPlant Foundation authoring and in the data warehouse. It references the
SmartPlant Foundation domain that contains the majority of SmartPlant Foundation classes that
are used in both SmartPlant Foundation authoring and in the data warehouse such as
transmittals. The only reason to mention the SPFREFERENCE domain here is that it contains
the SPFPlant ClassDef that makes up part of the PBS tree that is created in SmartPlant
Foundation and published for retrieval by the tools.
They are what are referred to as „common‟ domains in that they are used in both SmartPlant
Foundation authoring and in the data warehouse.
SPFAUTHORING
This is an authoring domain; it contains the PBSAuthoringComponent and the
SPFAuthoringComponent component schemas.
PBSAuthoringComponent contains the SPFFunctionalArea and SPFFunctionalUnit ClassDefs
exposed in the Desktop Client tree view and used to author and publish the PBS hierarchy.
SPFAuthoringComponent contains the ClassDefs for data that is created in SmartPlant
Foundation and then published including the data sheet and list documents and supporting
objects such as adapter documents and registration objects. In SmartPlant Foundation release
2009 SP1 and before, this component schema incorrectly contained the design document,
vendor document, and contract ClassDefs, all of which were moved to SPFREFERENCE in
2009 R3 SP2. The only consequence of this is that it is not possible to turn off the
SPFAUTHORING domain when working in pure SmartPlant Foundation mode without losing
access to these classes. Also it is confusing when these classes are not actually authoring
objects as they cannot be published and can be used in authoring or in the warehouse.
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 139
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
InstD
This is an authoring domain that was delivered as a place holder for configuring instrument lists.
It has been moved into the examples model area and not built into the OOTB database from
2009 R3 SP2 onwards.
MechanicalD
This is an authoring domain delivered that is ready for the installation of the mechanical
equipment data sheets from API.
ProcessD
This is an authoring domain. It supports the Instrument Process Data sheets (IPD). It contains
the schema for the design basis document, instrument, process point, and process case
ClassDefs. The actual data sheet document is defined in the SPFAUTHORING domain, but the
data that is published can be in any authoring domain.
DWShared
This is the special data warehouse domain that contains the shared objects that link together all
published data.
PBS
This is the data warehouse publish domain into which the PBS tree is published from
SmartPlant Foundation for retrieval by the tools.
PD
This is the data warehouse publish domain into which the process instruments are published
from SmartPlant Foundation using the Instrument Process Data sheets. ClassDefs in the
ProcessD authoring domain are mapped to ClassDefs in the PD domain.
Adapter Documents
The following adapter documents are supplied with the core delivered Authoring model. These
contain the files that control how SmartPlant Foundation authoring schema is mapped to the
SmartPlant schema and which interfaces get instantiated when the shared objects are created
in the data warehouse.
140 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Map Files
IDX Map Schema - This is a legacy adapter header file and not built into the OOTB
delivered database from 2009 R3 SP2 onwards.
IML Map Schema - This was delivered as an example to support instrument master list
authoring in SmartPlant Foundation.This is a legacy adapter header file and not built into the
OOTB delivered database from 2009 R3 SP2 onwards.
IPD Map Schema - Defines the mapping between ProcessD and PD data.
LLA Tool Map Schema - Defines the mapping for the line list. For more information, see
the How to Configure Line List Guide.
PBS Map Schema - Defines the mapping for the PBS hierarchy.
WBS Map Schema - This is a legacy adapter header file and not built into the OOTB
delivered database from 2009 R3 SP2 onwards.
Administration Roles
AuthoringAdministrator
Configuration of process case collections and adapter documents.
Related Message Access Groups:
DWAdministrator
Management of schema files, correlation activities, 3D composite documents, and published
data loading. This role gives access to the DWShared domain and its dependent tool domains.
Related Message Access Groups:
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 141
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
SchemaAdministrator
SmartPlant schema administration via the CMF file.
Related Message Access Groups:
PBSAdministrator
PBS management
Related Message Access Groups:
WBSAdministrator
WBS management
Related Message Access Groups:
142 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Authoring Roles
InstrumentationEngineer
Instrument creation through SmartPlant Foundation authoring
Related Message Access Groups:
InstrumentationViewer
Basic navigation of instrument creation through SmartPlant Foundation authoring
Related Message Access Groups:
MechanicalEngineer
Mechanical equipment data sheet creation via SmartPlant Foundation authoring
Related Message Access Groups:
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 143
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
MechanicalViewer
Basic navigation of mechanical equipment data sheet creation through SmartPlant Foundation
authoring
Related Message Access Groups:
ProcessEngineer
Process equipment creation through SmartPlant Foundation authoring
Related Message Access Groups:
ProcessViewer
Basic navigation of process equipment creation through SmartPlant Foundation authoring
Related Message Access Groups:
144 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
DWViewer
Navigates and views published data. This role gives access to the DWShared domain and its
dependent tool domains.
Related Message Access Groups:
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 145
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Integration Roles
SmartPlantPublisher
Related Message Access Groups:
SmartPlantRetriever
Related Message Access Groups:
Authoring Methods
The delivered database contains a number of methods that configure SmartPlant Foundation
authoring.
Method FrameworkRegisterPBS
Description Register for PBS
API Name FrameworkRegisterInt
Tool Adapter Prog ID SPFAdapter.TEF.Adapters.SPFTEFAdapterGEN
Domain SPFREFERENCE
Adapter Code PBS
Method FrameworkRegisterIntIPD
Description Register IPD with TEF (Interactive)
API Name FrameworkRegisterInt
Tool Adapter Prog ID SPFAdapter.TEF.Adapters.SPFTEFAdapterGEN
Domain ProcessD
Adapter Code IPD
Method FrameworkRegisterIntProcessCase
Description Register ProcessCase with TEF (Interactive)
API Name FrameworkRegisterInt
146 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Method FrameworkRegisterIntProcessCase
Tool Adapter Prog ID SPFAdapter.TEF.Adapters.SPFTEFAdapterGEN
Domain SPFAuthoring
Adapter Code ProcessCase
Framework Retrieve
Method FrameworkRetrieveIPD
Description Retrieve IPD
API Name FrameworkRetrieve
Tool Adapter Prog SPFAdapter.TEFAdapters.SPTEFAdapter.GEN
IDArgument 1
Domain ProcessD
Adapter Code IPD
Method FrameworkRetrieveProcessCase
Description Retrieve ProcessCase
API Name FrameworkRetrieve
Tool Adapter Prog ID SPFAdapter.TEFAdapters.SPTEFAdapter.GEN
Domain SPFAuthoring
Adapter Code ProcessCase
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 147
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Method CompareLatestRetrievedDataForProcessCase
Description Compare Latest Retrieved Data For ProcessCase
API Name CompareLatestRetrievedData
Tool Component SPFAuthoringComponent
Tool Domain SPFAuthoring
Adapter Code ProcessCase
Assembly Name SPFCompare.dll
ClassName SPFCompare.TEF.Compare.IPDCompareClass
Publish RHM
This method is used to publish the PBS hierarchy and is run from the right-click menu of the
plant.
Method FrameworkPublishPBSRHM
Description Publish PBS
API Name FrameworkPublishRHM
Tool Adapter Prog ID SPFAdapter.TEF.Adapters,SPFTEFAdapterGEN
Domain SPFReference
Adapter Code PBS
The following method is run from a data sheet document to publish the contents of the data
sheet snapshot. See the data sheet configuration guide for more details on data sheet
documents.
Method FrameworkPublishDatasheetDoc
148 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
Method FrameworkPublishDatasheetDoc
Description Publish Snapshot
API Name FrameworkPublishRHM
Tool Adapter Prog ID SPFAdapter.TEF.Adapters,SPFTEFAdapterGEN
Domain ProcessD
Adapter Code IPD
Publish by Query
These methods are run from the main menu and are used to query for and publish data.
Method FrameworkPublishIPD
Description Publish IPD
API Name FrameworkPublish
Tool Adapter Prog ID SPFAdapter.TEFAdapters.SPTEFAdapter.GEN
Domain ProcessD
Adapter Code IPD
Method FrameworkPublishProcessCase
Description Publish ProcessCase
API Name FrameworkPublish
Tool Adapter Prog ID SPFAdapter.TEFAdapters.SPTEFAdapter.GEN
Domain SPFAuthoring
Adapter Code ProcessCase
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 149
Summary of Core Delivered Authoring and Data Warehouse Models (OOTB)
150 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
APPENDIX A
<SPFAuthAdapterDocMaster>
<IObject Description="SPFAdapter_PAMaster" Name=" PA Header " UID="SPFAdapter_PAMaster" />
<ISPFDocumentMaster />
<ISPFNonPublishedDocMaster />
<ISPFAuthAdapterDocMaster SPFAuthAdapterCode="PA" />
<ISPFDocument SPFDocCategory="e1SPFSystemDocuments" SPFDocType="e1AdapterDocument" SPFTitle=""
SPFDocState="RESERVED"/>
</SPFAuthAdapterDocMaster>
<SPFAuthAdapterDocRevision>
<IObject Description="SPFAdapter_PARevision" Name=" PA Header " UID="SPFAdapter_PARevision" />
<ISPFDocumentRevision SPFExternalRevision="A1" SPFMajorRevision="A" SPFMinorRevision="1" SPFRevState="WORKING"
SPFRevUnderChangeInSameConfig="False" SPFSignoffComments="" />
<ISPFNonPublishedDocRevision />
<ISPFAuthAdapterDocRevision />
<ISPFWorkflowItem SPFTargetWorkflowName="" />
</SPFAuthAdapterDocRevision>
<SPFAuthAdapterDocVersion>
<IObject Description="PA Companion File" Name="PA Header" UID="SPFAdapter_PAVersion" />
<ISPFDocumentVersion SPFDocVersion="1" SPFIsDocVersionCheckedOut="False" SPFIsDocVersionSuperseded="False" />
<ISPFFileComposition />
<ISPFNonPublishedDocVersion />
<ISPFAuthAdapterDocVersion />
</SPFAuthAdapterDocVersion>
<SPFAuthAdapterFile>
<IObject Description="SPFAdapter_PAFile" Name="SPFAdapter_PAFile" UID="SPFAdapter_PAFile" />
<ISPFAlternateRenditionComposition />
<ISPFFile SPFLocalHostName="localhost" SPFLocalDirectory="C:\" SPFLocalFileName="SPFAdapter_PA.xml" />
<ISPFNavigationFileComposition />
<ISPFRefFile />
<ISPFAuthAdapterFile />
<ISPFDBFile />
</SPFAuthAdapterFile>
<SPFUploadInstruction>
<ISPFUploadInstruction FilePath="SPFAdapter_PA.xml" RemoveLocalFileInd="False"/>
<IRefObject RefClass="SPFAuthAdapterFile" RefUID="SPFAdapter_PAFile" RefName="SPFAdapter_PAFile" />
</SPFUploadInstruction>
<Rel>
<IRel DefUID="SPFFileVault" UID1="SPFAdapter_PAFile" UID2="VLT_SPF40Vault"/>
<IObject UID="SPFAdapter_PAFile.VLT_SPF40Vault" />
</Rel>
<Rel>
<IRel DefUID="SPFFileComposition" UID2="SPFAdapter_PAVersion" UID1="SPFAdapter_PAFile"/>
<IObject UID="SPFAdapter_PAFile.SPFAdapter_PAVersion" />
</Rel>
<Rel>
<IRel DefUID="SPFFileFileType" UID1="SPFAdapter_PAFile" UID2="FT_xml" />
<IObject UID="SPFAdapter_PAFile.FT_xml" />
</Rel>
<Rel>
<IObject UID="SPFAdapter_PAVersion.DAG_ADMIN" />
<IRel DefUID="SPFItemOwningGroup" UID1="SPFAdapter_PAVersion" UID2="DAG_ADMIN" />
</Rel>
<Rel>
<IObject UID="SPFAdapter_PAMaster.SPFAdapter_PARevision.MR" />
<IRel DefUID="SPFDocumentRevisions" UID1="SPFAdapter_PAMaster" UID2="SPFAdapter_PARevision" />
</Rel>
<Rel>
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 151
Sample Adapter Document Load File
<IObject UID="SPFAdapter_PARevision.SPFAdapter_PAVersion.RV" />
<IRel DefUID="SPFRevisionVersions" UID1="SPFAdapter_PARevision" UID2="SPFAdapter_PAVersion" />
</Rel>
<Rel>
<IObject UID="SPFAdapter_PARevision.RS_SPFRevisionScheme" />
<IRel UID1="SPFAdapter_PARevision" UID2="RS_SPFRevisionScheme" DefUID="SPFDocRevisionRevisionScheme"/>
</Rel>
</Container>
152 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Index
ComponentSchema or
A PublishToComponentSchema • 58
Configuration for Equipment List Editing •
Ad Hoc Report List View Changes • 20 115
Adapter Code • 128, 130 Configuration of a List Document • 111
Adapter Document • 33 Configuration of a Separate Equipment List
Adapter Document Configuration • 120 Object and Document • 114
Adapter Document Diagram • 33 Configuration of Roles for the Equipment
Adapter Documents • 140 List • 114
Adapter Header File Configuration • 121 Configuration of the Equipment List
Adapter Mapping File Configuration • 120 Document • 116
Add the PBS to SmartPlant Foundation and Configuration to Create and Manage the
Test • 85 Authored Data • 111
Additional Configuration for Managing Configuration to Generate the Document
Equipment • 114 Snapshot • 119
Additional Schema Considerations • 107 Configuration to Load Equipment from
Additional Schema to Support Equipment Excel • 120
List Authoring • 111 Configuration to Support Consolidation •
Administration Roles • 141 105
Approving the Data • 19 Configure a Publish Method • 99
Architecture of SmartPlant Data Warehouse Configuring a Design Basis Document • 128
• 14 Configuring Data Warehouse Inconsistency
Architecture of SmartPlant Foundation Reports • 133
Authoring • 13 Configuring Domains • 110
Assembly Name • 131 Configuring Equipment List Authoring • 120
Assign New UIDs • 131 Configuring Excel Load for the Equipment
Authoring and Data Warehouse Overview • List • 136
13 Configuring Excel Publish for the
Authoring Interfaces Diagram • 36 Equipment List • 137
Authoring Methods • 146 Configuring Exposure of the Published Data
Authoring Model • 31 • 132
Authoring Process Overview • 15 Configuring Publish for Authored Data • 122
Authoring Roles • 143 Configuring Retrieve for Objects Published
Authoring Schema to Support the PBS by Other Tools • 126
Hierarchy • 108 Configuring SkipFailedDocuments • 125
Configuring the Authoring Environment •
C 111
Check In the CMF file • 77 Configuring the Retrieve and Compare
Check Out the SmartPlant Schema CMF Process • 126
File • 75 Configuring the Shared Interface for the
Class Name • 131 Published Equipment • 104
CMF File and Physical Pseudo Files • 61 Converting an Existing Pseudo File into a
Compare • 60 Physical Pseudo File • 65
Compare Section of the Adapter Header Create a New PBS Template • 89
File • 60 Create a New Plant Group • 90
Compare with Design Basis • 130, 147 Create the Adapter Mapping Document in
Compare with Latest Retrieved Data • 131, SmartPlant Foundation • 120, 121
148 Creating a New Pseudo File in the Schema
Component Schemas • 13 Editor • 63
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 153
Index
154 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models
Index
P S
Plant Breakdown Structure for Integration SameAs Relationship • 28
Setup • 70 Sample Adapter Document Load File • 151
Plant Naming Guidelines • 71 Schema Component • 14
PopulateDataContainerForPublish • 50 Setting Up Publish and Retrieve Roles •
PopulateMetaDataContainer • 50 121
PRCDesignBasisDocMaster/Revision/Versi Shared Domain • 15
on • 35 Shared Object Configuration for Data
Preface • 7 Mining • 103
Pre-Loading Data for Approval • 18 Shared Objects • 25
Prepare the CMF Data to be Loaded into Shared Objects (Multiple Domains) • 26
SmartPlant Foundation • 77 SmartPlant Client • 14
Preparing the Schema Load File • 105 SmartPlant Foundation Adapter • 14, 49
Properties Grid • 20 SmartPlant Foundation Authoring Adapter
Pseudo Files and ContainerID • 61 Details • 49
SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models 155
Index
156 SmartPlant Foundation How to Configure the Authoring and Data Warehouse Models