This topic provides general information about the mapping in Smart Electrical.
Smart Electrical Adapter
Each authoring tool has an adapter that processes information during publish and retrieve operations. One of the adapter's functions is to map information between the SmartPlant Foundation database and the particular authoring tool. The Smart Electrical Adapter is a component that belongs to Smart Electrical, and requires the installation of Smart Electrical on both database servers listed below.
-
Oracle Database
-
Microsoft SQL Server
For more information on the supported database server versions, see the product installation guide.
Any communication between SmartPlant Foundation and Smart Electrical is performed via this adapter, which sends information to SmartPlant Foundation through the Common UI where the user is shown the appropriate user interface and data available.
The adapter does not handle tool schema files directly, but uses them indirectly. The tool schema files are used to define the retrieve map file, which is then used by the adapter. Direct use of the schema files would mean that the adapter accessed them directly to do its work. Both retrieve and publish operations only work through map files.
Mapping Configuration
The Smart Electrical adapter uses the tool schema map file and the Schema Editor, delivered with the SmartPlant Schema Component, to perform mapping between the Smart Electrical object structure and the structure of objects in the SmartPlant schema. The map file is installed with Smart Electrical Setup. This file includes all objects that are mapped for SmartPlant (not all objects that exist in Smart Electrical, not all properties, only those that can be of any relevance for other applications that use SmartPlant). In accordance with the Smart Electrical data model, the Schema Editor knows what Smart Electrical object to put a property on.
Tool Schema Location
The name of the Smart Electrical tool schema file is SPELMap.xml. Smart Electrical uses this file for all types of published and retrieved documents. This file must exist in the installation home folder of Smart Electrical. The SPELMap.xml should be treated as an installation file. Although, using the Schema Editor, it is possible to change the content of the map file, the file name must remain SPELMap.xml.