This document is archived and information here might be outdated.  Recommended version.


ITinFeatureEdit.AddPolyline Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinFeatureEdit.AddPolyline Method

Adds polyline. pSeed can be NULL or Nothing.

[Visual Basic .NET]
Public Sub AddPolyline ( _
    ByVal pShape As IPolyline, _
    ByVal Type As esriTinEdgeType, _
    ByVal TagValue As Integer, _
    ByVal NodeTagValue As Integer, _
    ByVal pSeed As ITinEdge, _
    [ByRef pZ As Object] _
)
[C#]
public void AddPolyline (
    IPolyline pShape,
    esriTinEdgeType Type,
    int TagValue,
    int NodeTagValue,
    ITinEdge pSeed,
    ref object pZ
);
[C#]

Optional Values

pZ   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT AddPolyline(
  IPolyline* pShape,
  esriTinEdgeType Type,
  long TagValue,
  long NodeTagValue,
  ITinEdge* pSeed,
  VARIANT* pZ
);
[C++]

Parameters pShape [in]
pShape is a parameter of type IPolyline Type [in]
Type is a parameter of type esriTinEdgeType TagValue [in] TagValue is a parameter of type long NodeTagValue [in] NodeTagValue is a parameter of type long pSeed
pSeed is a parameter of type ITinEdge pZ [optional] pZ is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The Shape, a 2D polyline object, represents the input geometry to be added.

The Type indicates how the resulting edges of the embedded polyline will be coded. Supported edge types are esriTinHardEdge, esriTinRegularEdge, and esriTinSoftEdge.

The TagValue is a signed, non-zero, long integer that will be assigned to the embedded polyline edges.

The NodeTagValue is a signed long integer that will be assigned to the embedded polyline nodes. A zero can be used to ignore node tag value assignment.

The Seed is TinEdge pointer. If you're interested in obtaining a seed that can be used as a handle to the added polyline then have the seed point to a TinEdge object. The object will then be populated with the appropriate properties. If you're not interested in obtaining a seed then pass a NULL pointer ('Nothing' in VisualBasic).

The optional Z can be used to define a constant height to be used for the added polyline. If unspecified, heights will be interpolated off the existing surface.

See Also

ITinFeatureEdit Interface