SetVertexCoordinate Method (IPolyLine3D)

SetVertexCoordinate Method (IPolyLine3D) | Send Feedback
See Also

Success[out]
  True if the coordinates of the vertex are set, false if not

VertexIndex

  Index of the vertex (see Remarks)

X
  x coordinate for the vertex

Y
  y coordinate for the vertex

Z
  z coordinate for the vertex

Sets the coordinates of the specified vertex of this 3D PolyLine.

# Syntax

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

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

JavaScript |
--- | ---
    SetVertexCoordinate(
       VertexIndex : Number,
       X : Number,
       Y : Number,
       Z : Number
    ) : Boolean

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

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

#### Parameters

VertexIndex

  Index of the vertex (see Remarks)

X
  x coordinate for the vertex
Y
  y coordinate for the vertex
Z
  z coordinate for the vertex
Success[out] or Return Value
  True if the coordinates of the vertex are set, false if not

# 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::GetVertexCoordinate Method
IPolyLine3D::GetVerticesCount Method

# Availability

DraftSight V1R1.3