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 String, _
   ByVal lOCID As Integer, _
   ByVal dTolerance As 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 String
Dim lOCID As Integer
Dim dTolerance As 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,
   string sModelName,
   int lOCID,
   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 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

IMMFeatureSplittingUtils Interface
IMMFeatureSplittingUtils Members

 

 


Send Comment