Solid Edge FrameworkSupport Type Library
SendBackward Method
Description
Changes the display order of visible objects by moving the referenced object so that it is in back of the first object behind it.
Syntax
Visual Basic
Public Sub SendBackward() 
Remarks
This command is useful when objects are hiding other objects that have a lower priority display but when you do not want to send the object all the way to the back of the priority list.
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 objPoint1 As SolidEdgeFrameworkSupport.Point2d
    Dim objPoint2 As SolidEdgeFrameworkSupport.Point2d
    Dim lngZorderP1 As Long, lngZorderP2 As Long

    ' 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 Points
    Set objPoint1 = objPoints.Add(x:=0.25, y:=0.25)
    Set objPoint2 = objPoints.Add(x:=0.25, y:=0.2)
    'send objpoint2 backward
    objPoint2.SendBackward



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

Point2d Object  | Point2d Members

Send comments on this topic.