ArcFM Desktop Developer Guide
IsEnabled Method
Example 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

The name of joined table containing the plugin field e.g. PrimaryMeter.
Determines whether the plugin field will be displayed for the given electric feature class.
Syntax
'Declaration
 
Function IsEnabled( _
   ByVal electricTableName As String _
) As Boolean
'Usage
 
Dim instance As IFeederField
Dim electricTableName As String
Dim value As Boolean
 
value = instance.IsEnabled(electricTableName)
bool IsEnabled( 
   string electricTableName
)

Parameters

electricTableName
The name of joined table containing the plugin field e.g. PrimaryMeter.

Return Value

true if the field is enabled for the given table;' otherwise, false.
Example
public bool IsEnabled(string electricTableName)
{
    // Enable the plugin field for distribution conductors.
    switch (electricTableName)
    {
        case "PriOHElectricLineSegment":
        case "PriUGElectricLineSegment":
        case "SecOHElectricLineSegment":
        case "SecUGElectricLineSegment":
            return true;
        default:
            return false;
    }
}
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 Interface
IFeederField Members

 

 


Send Comment