Description
Retrieves the coordinates of the start vertex.
Syntax
Function RFEdgeUse.GetStartPoint(pPoint As RFPoint3) As RFErrorCode
The GetStartPoint syntax has these parts:
| Part | Description |
|---|---|
| pPoint | [OUT] RFPoint3 Required. Coordinates of the start vertex. |
Remarks
Sample
Dim rfErr As RapidForm.RFErrorCode
Dim shObj As RapidForm.RFShell
Dim fcObj As RapidForm.RFFace
Dim edObj As RapidForm.RFEdgeUse
' Assign RFShell, RFFace and RFEdgeUse interface objects
Set shObj = RapidForm.Shell
Set fcObj = RapidForm.Face
Set edObj = RapidForm.EdgeUse
' Pick a face.
Dim pickedID As RFEntityID
rfErr = RapidForm.SelectTools.PickEntity(RF_PICK_FACE, 1, pickedID)
fcObj.SetID (pickedID)
Dim vtID(2) As RFEntityID
' Retrieves 3 vertices of the face.
rfErr = fcObj.GetVertices(vtID(0), vtID(1), vtID(2))
' Identify an edge use by using the first two vertices.
rfErr = edObj.SetID(vtID(0), vtID(1))
' Retrieves the geometries
Dim stPt As RFPoint3
Dim edPt As RFPoint3
' Retrieves the start point.
rfErr = edObj.GetStartPoint(stPt)
' Retrieves the end point.
rfErr = edObj.GetEndPoint(edPt)
' Retrieves the start and end point at once.
rfErr = edObj.GetPoints(stPt, edPt)