Adds line to an fc, using the map selection as the feature source. The selection can contain polygons and polylines from multiple features classes - including the target feature class. -1 for c.t. means use c.t. of target sr.
[Visual Basic .NET] Public Sub ConstructLines ( _ ByVal cancel As ICancelOperation, _ ByVal targetFC As IFeatureClass, _ ByVal sel As IEnumFeature, _ ByVal replaceExistingInTarget As Boolean, _ ByVal InvalidArea As IInvalidArea, _ ByVal ClusterTolerance As Double _ )
[C#] public void ConstructLines ( ICancelOperation cancel, IFeatureClass targetFC, IEnumFeature sel, bool replaceExistingInTarget, IInvalidArea InvalidArea, double ClusterTolerance );
[C++]
HRESULT ConstructLines(
ICancelOperation* cancel,
IFeatureClass* targetFC,
IEnumFeature* sel,
VARIANT_BOOL replaceExistingInTarget,
IInvalidArea* InvalidArea,
double ClusterTolerance
);
[C++]Parameters
cancelcancel is a parameter of type ICancelOperation
targetFCtargetFC is a parameter of type IFeatureClass
selsel is a parameter of type IEnumFeature
replaceExistingInTarget replaceExistingInTarget is a parameter of type VARIANT_BOOL InvalidAreaInvalidArea is a parameter of type IInvalidArea
ClusterTolerance ClusterTolerance is a parameter of type double
Product Availability
Remarks
ConstructLines creates new line features to the target feature class by planarizing a selected set of features. The selection can contain polygons and polylines from multiple features classes - including the target feature class.
If replaceExistingInTarget is true, then selected features that are already in the target feature class will be replaced by their planarized versions, otherwise the planarized versions will be added in addition to the originals, resulting in overlapping features in the target. In both cases, planarized features originating from target features will receive the correct attributes.
The invalid area interface is optional and can be used to redraw the area affected by processing. In some cases it may be necessary to have an invalid area in order for related features (annotation, route symbology, etc) to redraw correctly.
The cluster tolerance must at least be as large as the cluster tolerance of the spatial reference associated with the target feature class.