This document is archived and information here might be outdated. Recommended version. |
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 cancel
cancel is a parameter of type ICancelOperation* targetFC
targetFC is a parameter of type IFeatureClass* sel
sel is a parameter of type IEnumFeature* replaceExistingInTarget
replaceExistingInTarget is a parameter of type bool InvalidArea
InvalidArea is a parameter of type IInvalidArea* ClusterTolerance
ClusterTolerance is a parameter of type double
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.