Solid Edge FrameworkSupport Type Library
SetPoint Method
Specifies the coordinates of the point.
Specifies the coordinates of the point.
Description
Sets the coordinates of the referenced Point2d object.
Syntax
Visual Basic
Public Sub SetPoint( _
   ByVal x As Double, _
   ByVal y As Double _
) 
Parameters
x
Specifies the coordinates of the point.
y
Specifies the coordinates of the point.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objPoints As SolidEdgeFrameworkSupport.Points2d
    Dim objPoint As SolidEdgeFrameworkSupport.Point2d
    Dim dblX As Double, dblY As Double
    ' 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.DraftDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    'getting the Active Sheet object
    Set objSheet = objDoc.ActiveSheet
    'Create Points collection
    Set objPoints = objSheet.Points2d
    'Create Point
    Set objPoint = objPoints.Add(x:=0.2, y:=0.2)

    'call SetPoint
    Call objPoint.SetPoint(x:=0.35, y:=0.35)




    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objPoints = Nothing
    Set objPoint = Nothing
End Sub
See Also

Point2d Object  | Point2d Members

Send comments on this topic.