ArcFM Solution Developer Guide
SplitFeatureByClassModelNameAndDistance Method






Edit workspace as IWorkspace
The point at which the line will be split (as IPoint)
Model name of the split target (e.g., the linear feature class)
Segment ID as Long
Snapping tolerance as Double
This method is used to split linear features using a point feature. The code only considers the case of splitting a line using a point; it does not consider the case of a line splitting a polygon. It can be used within or outside of ArcMap. 
Syntax
'Declaration
 
Function SplitFeatureByClassModelNameAndDistance( _
   ByVal pWorkspace As ESRI.ArcGIS.Geodatabase.IWorkspace, _
   ByVal pPoint As ESRI.ArcGIS.Geometry.IPoint, _
   ByVal sModelName As System.String, _
   ByVal lOCID As System.Integer, _
   ByVal dTolerance As System.Double _
) As ESRI.ArcGIS.esriSystem.ISet
'Usage
 
Dim instance As IMMFeatureSplittingUtils
Dim pWorkspace As ESRI.ArcGIS.Geodatabase.IWorkspace
Dim pPoint As ESRI.ArcGIS.Geometry.IPoint
Dim sModelName As System.String
Dim lOCID As System.Integer
Dim dTolerance As System.Double
Dim value As ESRI.ArcGIS.esriSystem.ISet
 
value = instance.SplitFeatureByClassModelNameAndDistance(pWorkspace, pPoint, sModelName, lOCID, dTolerance)
ESRI.ArcGIS.esriSystem.ISet SplitFeatureByClassModelNameAndDistance( 
   ESRI.ArcGIS.Geodatabase.IWorkspace pWorkspace,
   ESRI.ArcGIS.Geometry.IPoint pPoint,
   System.string sModelName,
   System.int lOCID,
   System.double dTolerance
)
function SplitFeatureByClassModelNameAndDistance( 
    pWorkspace: ESRI.ArcGIS.Geodatabase.IWorkspace;
    pPoint: ESRI.ArcGIS.Geometry.IPoint;
    sModelName: System.String;
    lOCID: System.Integer;
    dTolerance: System.Double
): ESRI.ArcGIS.esriSystem.ISet; 
function SplitFeatureByClassModelNameAndDistance( 
   pWorkspace : ESRI.ArcGIS.Geodatabase.IWorkspace,
   pPoint : ESRI.ArcGIS.Geometry.IPoint,
   sModelName : System.String,
   lOCID : System.int,
   dTolerance : System.double
) : ESRI.ArcGIS.esriSystem.ISet;
ESRI.ArcGIS.esriSystem.ISet* SplitFeatureByClassModelNameAndDistance( 
   ESRI.ArcGIS.Geodatabase.IWorkspace* pWorkspace,
   ESRI.ArcGIS.Geometry.IPoint* pPoint,
   System.string* sModelName,
   System.int lOCID,
   System.double dTolerance
) 
ESRI.ArcGIS.esriSystem.ISet^ SplitFeatureByClassModelNameAndDistance( 
   ESRI.ArcGIS.Geodatabase.IWorkspace^ pWorkspace,
   ESRI.ArcGIS.Geometry.IPoint^ pPoint,
   System.String^ sModelName,
   System.int lOCID,
   System.double dTolerance
) 

Parameters

pWorkspace
Edit workspace as IWorkspace
pPoint
The point at which the line will be split (as IPoint)
sModelName
Model name of the split target (e.g., the linear feature class)
lOCID
Segment ID as Long
dTolerance
Snapping tolerance as Double

Return Value

The set of features after the split has completed (as ISet)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMFeatureSplittingUtils Interface
IMMFeatureSplittingUtils Members

Send Feedback