Sample - Reassign Network Adapter ObjectIDs (classic)

Version 9

    Versions: 9.3.2 - current

    Product Availability: Network Adapter

     

    This developer sample provides a way to display FacilityID in place of ObjectIDs when viewing exported information from Network Adapter (classic).

    (For Network Adapter Stand-Alone, see Sample - Reassign Network Adapter (Stand-Alone) ObjectIDs.)

     

    How to Implement:

    1. Open the solution and fix any broken references.
    2. Build the solution sample.
    3. Copy the ReassignIDs.xsl file to the Bin > Style Sheet folder in your ArcFM installation directory (typically C:\Program Files (x86)\Miner and Miner\ArcFM Solution\Bin\Style Sheets).


    How to Use:

    1. Open ArcMap.
    2. Open the Network Adapter Options window.
    3. Select the Export tab.
    4. In the Pre-Transformation ProgID field, paste the following: Miner.NetworkAdapter.Processors.ApplyXsl   
      Note: This corresponds to the ProgID in the ApplyXsl.cs file in the solution.
    5. Click OK.
    6. Run the Multispeak Engineering Analysis Export.

    Your devices should now display with the FacilityID in place of the ObjectID. For example:

    Prior to the sample, a switch could appear as:

    <switchDeviceBank objectID="43.90">

                                                   ...

    <facilityID>SW90</facilityID>

    <sectionID>43.90</sectionID>

    <parentSectionID name="21.783.1"/>

     

    After implementing this sample, the switch could appear as:

    <switchDeviceBank objectID="SW90_43.90">

                                                    ...

    <facilityID>SW90</facilityID>

    <sectionID>SW90_43.90</sectionID>

    <parentSectionID name="OH12345_21.783.1"/>

     

     

    Requires:

    • ArcFM with the Network Adapter extension
    • ArcObjects .NET SDK

     

    All of the files shown below are required for the project to compile successfully.

     

    FileDescription
    NetworkAdapterProcessors.slnSolution containing the code to modify export display.
    Processors.csprojC# project containing the code to modify export display.
    ApplyXsl.csClass module that provides ProgID reference for export display.
    ReassignIDs.xslStyle sheets that affects display of FacilityIDs.
    AssemblyInfo.csSupporting class module