Solid Edge FrameworkSupport Type Library
GetKeyPoint Method
Specifies the index of the keypoint/handle.
X coordinate of the specified keypoint.
Y coordinate of the specified keypoint.
Z coordinate of the specified keypoint.
Returns a member of the KeyPointType constant set.
Returns a value in the HandleType constant set.
Description
Returns information about a specified key point.
Syntax
Visual Basic
Public Sub GetKeyPoint( _
   ByVal Index As Long, _
   ByRef x As Double, _
   ByRef y As Double, _
   ByRef z As Double, _
   ByRef KeypointType As KeyPointType, _
   ByRef HandleType As Long _
) 
Parameters
Index
Specifies the index of the keypoint/handle.
x
X coordinate of the specified keypoint.
y
Y coordinate of the specified keypoint.
z
Z coordinate of the specified keypoint.
KeypointType
ValueDescription
igKeyPointCallbackKeypoint Type - Callback
igKeyPointCenterKeypoint Type - Center
igKeyPointEndKeypoint Type - End
igKeyPointHorizontalSilhouetteKeypoint Type - Horizontal Silhouette
igKeyPointInteriorNodeKeypoint Type - Interior Node
igKeyPointInteriorPoleKeypoint Type - Interior Pole
igKeyPointMajorAxisKeypoint Type - Major Axis
igKeyPointMiddleKeypoint Type - Middle
igKeyPointMinorAxisKeypoint Type - Minor Axis
igKeyPointNonDefiningKeypoint Type - Non-defining
igKeyPointPointOnlyKeypoint Type - Point Only
igKeyPointStartKeypoint Type - Start
igKeyPointVerticalSilhouetteKeypoint Type - Vertical Silhouette
Returns a member of the KeyPointType constant set.
HandleType
Returns a value in the HandleType constant set.
Remarks
The key point is specified by its index.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim objEllpArcs As SolidEdgeFrameworkSupport.EllipticalArcs2d
    Dim objEllpArc As SolidEdgeFrameworkSupport.EllipticalArc2d
    Dim dblStrt As Double
    Dim dblFin As Double
    Dim x As Double, y As Double, z As Double
    Dim cKPType As KeyPointType
    Dim cHndType As HandleType
    Dim sDumpStatus As String    ' Used for temporary storage of datadump return string
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    'Create an EllipticalArcs2d collection object
    Set objEllpArcs = objDoc.ProfileSets.Add.Profiles.Add(pRefPlaneDisp:= _
                                                          objDoc.RefPlanes(1)).EllipticalArcs2d
    'Create an EllipticalArc object
    dblStrt = 180 * PI / 180
    dblFin = 230 * PI / 180
    Set objEllpArc = objEllpArcs.AddByCenter(xCenter:=0.02, yCenter:=0.02, _
                                             xMajoraxis:=0.03, yMajoraxis:=0.02, Ratio:=0.5, _
                                             Orientation:=0, StartAngle:=dblStrt, EndAngle:=dblFin)
    ' Get a KeyPoint of the EllipticalArc object
    Call objEllpArc.GetKeyPoint(Index:=0, x:=x, y:=y, z:=z, _
                                KeyPointType:=cKPType, HandleType:=cHndType)

    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objEllpArcs = Nothing
    Set objEllpArc = Nothing
End Sub
See Also

EllipticalArc2d Object  | EllipticalArc2d Members

Send comments on this topic.