ArcFM Desktop Developer Guide
Equipment ID Format - CYMDIST

Resource Center Home

A single piece of equipment has two different types of attributes: settings and specifications. There are the attributes - or settings - whose values may change given the situation. For example, a fuse's Phase Designation may change (A, B, C). A piece of equipment may also have attributes whose values do NOT change - or specifications. For example, this same fuse has electrical specifications defined by the model and manufacturer (e.g., rated voltage, continuous current rating).

Generally, specifications are stored in the Equipment database in the engineering analysis engine. Specifications might not be stored in the GIS because storing the identical specifications for every feature in the geometric network would be redundant. The feature specific attributes (or settings) are stored in the GIS and the Equipment ID is used to map the features to their corresponding types in the Equipment database.

Geodatabase features are mapped to the Equipment database using an Equipment ID. This value is a unique identifier for the type of equipment (not the specific feature). There are two methods available for configuring your equipment ID.

Method 1

This method allows you to create an Equipment ID by populating a single geodatabase field for each feature. This option does NOT allow you to concatenate multiple fields to create an Equipment ID.

Network Adapter looks for Equipment ID in the following field: EquipmentID. This field must exist on the feature or object class to which the Equipment ID is assigned. The field MUST be spelled and capitalized exactly as shown (EquipmentID).

This field should be populated in the geodatabase with the Equipment ID specific to each feature. Below is an example of how an Equipment ID may be configured for a conductor and a fuse.

Feature Class or Table

Field

Model Name/Field Model Name

PriOHElectricLineSegment

--

CYMDISTEXPORT

PriOHElectricLineSegment

EquipmentID

CYMDISTEXPORT

Fuse

--

CYMDISTEXPORT

Fuse

EquipmentID

CYMDISTEXPORT

 

Method 2

Use an XSL style sheet to manipulate XML to determine the information to be concatenated into a single Equipment ID. A sample is provided below. In the highlighted portion below, the XML selects the LinkRtg and FuseType values for the feature and appends them to "_OH_FUS" (e.g., 200H_OH_FUS). You may modify the XML to change the attributes displayed in the EquipmentID field to fit your business needs.

XSL Snippet
Copy Code
<xsl:template match="FEATURE" mode="FuseEquipment">
 <xsl:variable name="EquipmentID" select="FIELDS/FIELD[translate(FIELDNAME,&uc;,&lc;) = 'equipmentid']/FIELDVALUE"/>
 <xsl:variable name="LinkRtg" select="FIELDS/FIELD[translate(FIELDNAME,&uc;,&lc;) = 'linkrating']/FIELDVALUE"/>
 <xsl:variable name="FuseType" select="FIELDS/FIELD[translate(FIELDNAME,&uc;,&lc;) = 'linktype']/FIELDVALUE"/>

 <xsl:variable name="eaEquipment">
  <xsl:choose>
   <xsl:when test="$EquipmentID != ''">
    <xsl:value-of select="$EquipmentID"/>
   </xsl:when>
   <xsl:otherwise>
    <xsl:value-of select="$LinkRtg"/>
    <xsl:value-of select="$FuseType"/>
    <xsl:text>_FUS</xsl:text>
   </xsl:otherwise>
  </xsl:choose>
 </xsl:variable>

 <xsl:element name="eaEquipment">
  <xsl:value-of select="$eaEquipment"/>
 </xsl:element>

</xsl:template>

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com