GetVertexCoordinate Method (IPolyLine3D)

GetVertexCoordinate Method (IPolyLine3D) | Send Feedback
See Also

VertexIndex
  Index of the vertex (see Remarks)

X[out]

  x coordinate of the vertex

Y[out]

  y coordinate of the vertex

Z[out]

  z coordinate of the vertex

Gets the coordinates of the specified vertex of the 3D PolyLine.

# Syntax

Visual Basic |
--- | ---
    Function GetVertexCoordinate( _
       ByVal VertexIndex As System.Integer, _
       ByRef X As System.Double, _
       ByRef Y As System.Double, _
       ByRef Z As System.Double _
    ) As System.Boolean

C# |
--- | ---
    System.bool GetVertexCoordinate(
       System.int VertexIndex,
       out System.double X,
       out System.double Y,
       out System.double Z
    )

JavaScript |
--- | ---
    GetVertexCoordinate(
       VertexIndex : Number
    ) : {
       X : Number,
       Y : Number,
       Z : Number,
       Success : Boolean
    }

COM native C++ |
--- | ---
    HRESULT GetVertexCoordinate(
       LONG VertexIndex,
       DOUBLE* X,
       DOUBLE* Y,
       DOUBLE* Z,
       VARIANT_BOOL* Success
    )

C++ |
--- | ---
    DSRESULT GetVertexCoordinate(
       long VertexIndex,
       double* X,
       double* Y,
       double* Z,
       bool* Success
    )

#### Parameters

VertexIndex
  Index of the vertex (see Remarks)
X[out]

  x coordinate of the vertex

Y[out]

  y coordinate of the vertex

Z[out] or Return Value

  z coordinate of the vertex

# Remarks

Before calling this method, call IPolyLine3D::GetVerticesCount to get the number of vertices in the 3D PolyLine and to determine a valid value for VertexIndex.

# See Also

####

IPolyLine3D Interface
IPolyLine3D Members
IPolyLine3D::SetVertexCoordinate Method

# Availability

DraftSight V1R1.3