Академический Документы
Профессиональный Документы
Культура Документы
Engineering V7.0
SmartPlant® Mapping
User's Guide
Version: V7.0
July 2008
Copyright © 2007 – 2008 Aspen Technology, Inc. All rights reserved.
AspenTech®, Aspen Basic Engineering, the aspen leaf logo, and Plantelligence are trademarks or registered
trademarks of Aspen Technology, Inc., Burlington, MA.
All other brand and product names are trademarks or registered trademarks of their respective companies.
This document is intended as a guide to using AspenTech's software. This documentation contains AspenTech
proprietary and confidential information and may not be disclosed, used, or copied without the prior consent of
AspenTech or as set forth in the applicable license.
This documentation contains AspenTech proprietary and confidential information and may not be disclosed, used,
or copied without the prior consent of AspenTech.
This guide provides information on how Aspen Basic Engineering data relates
to the SmartPlant Schema through mappings and how they can be adjusted.
It does not provide information on using the appropriate data modeling tools
in Aspen Basic Engineering (see the Class Library Editor help for more
information) or the SmartPlant Schema Editor (see the appropriate Intergraph
help or documentation). This guide is intended for system administrators or
configuration users that are well versed in the tools available from either
Aspen Technology or Intergraph.
This guide describes the assumptions, rules, and limitations imposed by the
Aspen Basic Engineering adapter on schema mapping. It also describes the
structure of the tool schema and how it is used by the authoring tool
SmartPlant adapter in support of publish and retrieve operations. The guide
does not provide a list of the classes, properties, or enum lists that are
mapped by the delivered Aspen Basic Engineering tool schema. You can
obtain this information by viewing the tool schema directly. The guide does
not describe the user interface of The Engineering Framework Schema Editor.
It is assumed that you are already familiar with the Schema Editor.
Audience .................................................................................................................3
General Information..............................................................................................16
Related Documentation ................................................................................. 16
Before modifying the mapping for Aspen Basic Engineering, you must
understand:
• The Aspen Basic Engineering software
• The Aspen Basic Engineering data model
• The delivered mapping for Aspen Basic Engineering
• How the delivered mapping for Aspen Basic Engineering works
• Framework schema modeling
• The Schema Editor
• The To Do List feature of Aspen Basic Engineering
The following are terms that are frequently referenced by this guide:
• Tool schema — Defines the Aspen Basic Engineering objects to be
published and/or retrieved and how they map to objects in the Framework
schema. The tool schema implements a mapping between the objects in
the Aspen Basic Engineering data model and the objects in the Framework
schema. Users who customize either the Aspen Basic Engineering data
model or the Framework schema may also need to customize the mapping
contained in the tool schema.
• Framework schema — Defines The Engineering Framework data model.
• Adapter — The Aspen Basic Engineering code module that supports the
Framework commands.
When you publish Aspen Basic Engineering data, the adapter extracts data
from the Aspen Basic Engineering database and converts it into a set of
objects and relationships that are compatible with the Framework schema.
These objects and relationships are defined in an .xml file, which is sent to
SmartPlant for further processing.
Mapping Configuration
The Aspen Basic Engineering adapter uses the tool schema map file and the
Schema Editor, delivered with the Framework Schema Component, to perform
mapping operations between the Aspen Basic Engineering object structure
and the structure of objects in the Framework schema. The map files are
installed with Aspen Basic Engineering Setup. These files include all objects
that are mapped for SmartPlant (not all objects that exist in Aspen Basic
Engineering, not all properties, only those that can be of any relevance for
other applications that use SmartPlant). In accordance with the Aspen Basic
Engineering data model, the Schema Editor knows what Aspen Basic
Engineering object to put a property on.
This topic describes objects and object relationships that are relevant to the
Aspen Basic Engineering tool schema. Relationship descriptions reference
names shown in a diagram that represents the data model of the Aspen Basic
Engineering tool schema. For details, see Tool Schema Data Model Diagram.
MapClass
The MapClass object corresponds to the IMapClassDef interface in the Tool
Schema Data Model diagram. In general, there is a MapClass object in the
tool schema for each Aspen Basic Engineering class (ItemType) that needs to
be published or retrieved. MapClass is referred to as SPMapClassDef in the
Schema Editor user interface. The properties and relationships for a MapClass
object can be viewed in the Edit Map Class Definition dialog box.
Name The property value is required. This property designates the internal
class name of the Aspen Basic Engineering item type, exactly as defined
in the Data Model.
Process Criteria On publish this property can be used to specify the required enumerated
type, overloading the default enummetadata specified in the tool schema.
On retrieve this property specifies the value of the retrieved objects type
to be matched with the Select Criteria and if a match is found to create
an object in Aspen Basic Engineering of the type specified in the UID.
Mapping Relationships
Relationship Description
Publish to This relationship must be set to a class in the Framework schema if this
SmartPlant Class class is to be published. When this relationship is set, an instance of the
target class is published for each instance of the source class in the
document being published. The relationship name in the diagram is
MapClassToClass.
Retrieve from The list of interfaces from which properties are to be retrieved must be
SmartPlant set if this class is to be used for retrieval. The relationship name in the
interface diagram is ClassToMapClass. This is not needed if no properties are to be
retrieved on this class.
General
Property Description
UID The property value is required, must be unique. Generally the UID of a
map property has followed the naming system of
<CLASSNAME>.<PROPERTYNAME>_ZYQ. For example, UID of
Motor.ItemTag property would be Motor.Itemtag_ZYQ.
Name The property value is required. This property must be the same as the
internal name of the Aspen Basic Engineering attribute, as defined in the
Data Model.
Process Criteria The Process criteria are used when publishing properties of Aspen Basic
Engineering to specify that the type of the property, e.g. Enum or Object
such as Nozzle or Material Flow Specification, etc.
If the Process Criteria is set to Object, then a Schema object of the same
class definition as the type of object at the mapped property will be
created during publishing. However, you can specify the type of Schema
object to create by appending the class definition name as:
Object:ClassDefName
On retrieve this property is set to the value of the type specified at the
Select Criteria. E.g. @ABCD.
If the select criteria is IEquipment.EqType1then any items who are
related to the current object being retrieved and have the interface
IEquipment with the property EqType1 set to @ABCD will be retrieved
and set against this property.
Select Criteria The select criteria is used to specify a particular property value setting
required for the case where Aspen Basic Engineering has different objects
which map to only one object in the SmartPlant schema which has a
property setting to distinguish the objects in Aspen Basic Engineering.
This property is set to the formula
Interface:property=value
See the example of PipingSystem_ZYQ in the eqdmap.xml for publishing
NormalFlow
On retrieve this property specifies the interface and property of the type
of Schema object to map to this property as:
Interface.Property – e.g. IEquipment.EqType1
Scoped by If the data type of the property is enumerated, the MapProperty object
Enumeration must be related to a MapEnumList object. Otherwise, this relationship is
not needed. The relationship name in the diagram is
MapPropertyMapEnumList.
Mapping Relationships
Relationship Description
Map Property to This relationship defines the property in the Framework schema to which
Property this tool property is to be published. If this relationship is not defined,
the property will not be published. The relationship name in the diagram
is MapPropertyToProperty.
Property to Map This relationship defines the property in the Framework schema from
Property which this tool property is to be retrieved. If this relationship is not
defined, the property will not be retrieved. The relationship name in the
diagram is PropertyToMapProperty.
MapEnumList
The MapEnumList object corresponds to the IMapEnumListDef interface in the
Tool Schema Data Model diagram. In general, there is a MapEnumList object
in the tool schema for each Aspen Basic Engineering enumerated list
associated with a property that needs to be published or retrieved. The
properties and relationships for a MapEnumList object can be viewed in the
Edit Map Enumerated List Definition dialog box.
General
Property Description
UID The property value is required, must be unique, characters are not case-
sensitive. UID of an enumerated list must be <EnumListName>_ZYQ.
For example, UID of the YesNo enum list must be YesNo_ZYQ.
Name The value of this property is the name of the Aspen Basic Engineering
enum list.
MapEnum
The MapEnum object corresponds to the IMapEnumDef interface in the Tool
Schema Data Model diagram. In general, there is a MapEnum object in the
tool schema for each Aspen Basic Engineering enumerated list entry that
needs to be mapped. The properties and relationships for a MapEnum object
can be viewed in the Edit Map Enumerated List Definition dialog box (the
same dialog box is used for MapEnumList objects.)
General
Property Description
UID The property value must be unique. UID of an enumerated list entry
follows the form <EnumListName>_ZYQ. For example, UID of the Yes
entry of the YesNo enum list would be YesNo_ZYQ.
Name The value of this property is a text setting of the Aspen Basic Engineering
enum list entry.
Select Criteria This property value is required and must be set to the enumeration value,
usually the same as the name.
Mapping Relationships
Relationship Description
Maps To This relationship defines the Framework schema enum value to which this
Aspen Basic Engineering enum value is to be published. If this
relationship is not defined, the enum value will not be published. The
relationship name in the diagram is MapEnumToEnum.
Maps From This relationship defines the Aspen Basic Engineering enum value to
which the Framework schema enum value is to be retrieved. If this
relationship is not defined, the enum value will not be retrieved. The
relationship name in the diagram is EnumToMapEnum.
This section lists any other documentation related to this Aspen Basic
Engineering release.
Related Documentation
In addition to this document, the following documents are provided to help
users learn and use the Aspen Basic Engineering applications:
Title Content
What’s New This guide provides an overview of new features and functionality within
the Aspen Basic Engineering application set and describes how to work
with Aspen Basic Engineering Projects within Aspen Basic Engineering and
within The Engineering Framework (SmartPlant)
On-line Help A comprehensive set of help systems are also provided with Aspen Basic
Engineering. Help within specific applications (for example Bridge Help) is
available from the Help menu of the open application
A generic, self-contained Help system (detailing all Aspen Basic
Engineering applications, their use and interaction) is available by clicking
on the Help icon within the windows Start | Programs | AspenTech |
Aspen Engineering Suite | Aspen Basic Engineering path