ArcFM Desktop Developer Guide
DisconnectFeature Method (INetworkConnect)
Example 


The feautre to disconnect
Disconnects the given feature.
Syntax
'Declaration
 
Sub DisconnectFeature( _
   ByVal feature As ESRI.ArcGIS.Geodatabase.IFeature _
) 
'Usage
 
Dim instance As INetworkConnect
Dim feature As ESRI.ArcGIS.Geodatabase.IFeature
 
instance.DisconnectFeature(feature)
void DisconnectFeature( 
   ESRI.ArcGIS.Geodatabase.IFeature feature
)

Parameters

feature
The feautre to disconnect
Example
void DisconnectFeature(IFeature feature)
{
    if (Editor.EditState != EditState.StateEditing)
        throw new InvalidOperationException("You must be editing to disconnect a feature.");
            
    var connect = new ConnectElectric();
    Editor.StartOperation();
    connect.DisconnectFeature(feature);
    Editor.StopOperation("Disconnect feature.");
}
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

INetworkConnect Interface
INetworkConnect Members

 

 


Send Comment