GetControlPointCoordinate Method (ISpline)

GetControlPointCoordinate Method (ISpline) | Send Feedback
See Also

Success[out]
  True if successful, false if not

Index
  Index of the control point (see Remarks)

X[out]
  x coordinate of the control point

Y[out]
  y coordinate of the control point

Z[out]
  z coordinate of the control point

Gets the coordinates of the specified control point of the Spline.

# Syntax

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

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

JavaScript |
--- | ---
    GetControlPointCoordinate(
       Index : Number
    ) : {
       X : Number,
       Y : Number,
       Z : Number,
       Success : Boolean
    }

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

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

#### Parameters

Index
  Index of the control point (see Remarks)
X[out]
  x coordinate of the control point
Y[out]
  y coordinate of the control point
Z[out]
  z coordinate of the control point
Success[out] or Return Value
  True if successful, false if not

# Remarks

Before calling this method, call ISpline::GetControlPointsCount to determine a valid value for Index.

# See Also

####

ISpline Interface
ISpline Members
ISpline::SetControlPointCoordinate Method

# Availability

DraftSight V1R1.3