ArcFM Desktop Developer Guide
Modify Equipment ID Format - MultiSpeak

Resource Center Home

You can edit the NetAdapterMspEAExport_Equipment.xsl style sheet to create your own Equipment ID format. By default, this style sheet is installed here: ..\Program Files\Miner and Miner\ArcFM Solution\Bin\Style Sheets\.

In the XML snippet below, the XML selects the LinkRtg and FuseType values for the feature and appends them to "_OH_FUS" (e.g., 200H_OH_FUS). You can 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;) = 'linkrtg']/FIELDVALUE"/>
 <xsl:variable name="FuseType" select="FIELDS/FIELD[translate(FIELDNAME,&uc;,&lc;) = 'fusetype']/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