ArcFM Desktop Developer Guide
IFeederField Interface
Members  Example 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Feeder Manager 2 extensions to define custom fields.
Available at Version
Product Availability
Required Licenses
.NET Assembly
Object Model
IFeederField Interface
Syntax
'Declaration
 
Public Interface IFeederField 
'Usage
 
Dim instance As IFeederField
public interface IFeederField 
Remarks
Implement IFeederField to add a custom plugin field to electric network feature classes configured for Feeder Manager 2. Implementations of IFeederField must be identified ussing the MEF Export attribute, and installed in the [ARCFM_HOME]\FeederManager\ folder. Assemblies which extend Feeder Manager 2 interfaces such as IFeederField do not need to be COM registered.
Example
A simple Feeder Manager 2 custom plugin field which returns the feature key of the selected feature.
using System.ComponentModel.Composition;
using Miner.Geodatabase.FeederManager.PlugIn;
using Miner.Geodatabase.Network;
            
[Export(typeof(IFeederField))]
public class FeatureKeyFeederField : IFeederField
{
    public object GetValue(IFeederInfo<FeatureKey> feederInfo, string electricTableName)
    {
        return feederInfo.Key.ToString();
    }
            
    public bool IsEnabled(string electricTableName)
    {
        return true;
    }
            
    public string Name
    {
        get { return "FeatureKey"; }
    }
             
    public string Alias
    {
        get
        {
            return "Feature Key";
        }
    }
}
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IFeederField Members
Miner.Geodatabase.FeederManager.PlugIn Namespace

Feeder Manager 2 extensions to define custom fields.
Object Model
IFeederField Interface
Syntax
'Declaration
 
Public Interface IFeederField 
'Usage
 
Dim instance As IFeederField
public interface IFeederField 
Remarks
Implement IFeederField to add a custom plugin field to electric network feature classes configured for Feeder Manager 2. Implementations of IFeederField must be identified ussing the MEF Export attribute, and installed in the [ARCFM_HOME]\FeederManager\ folder. Assemblies which extend Feeder Manager 2 interfaces such as IFeederField do not need to be COM registered.
Example
A simple Feeder Manager 2 custom plugin field which returns the feature key of the selected feature.
using System.ComponentModel.Composition;
using Miner.Geodatabase.FeederManager.PlugIn;
using Miner.Geodatabase.Network;
            
[Export(typeof(IFeederField))]
public class FeatureKeyFeederField : IFeederField
{
    public object GetValue(IFeederInfo<FeatureKey> feederInfo, string electricTableName)
    {
        return feederInfo.Key.ToString();
    }
            
    public bool IsEnabled(string electricTableName)
    {
        return true;
    }
            
    public string Name
    {
        get { return "FeatureKey"; }
    }
             
    public string Alias
    {
        get
        {
            return "Feature Key";
        }
    }
}
Inheritance Hierarchy

Miner.Geodatabase.FeederManager.PlugIn.IFeederField

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IFeederField Members
Miner.Geodatabase.FeederManager.PlugIn Namespace

 

 


Send Comment