Solid Edge Part Type Library
SetLoadDirection Method
X Direction
Y Direction
Z Direction
Description
Set X, Y, Z directions for a load object.
Syntax
Visual Basic
Public Sub SetLoadDirection( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal z As Double _
) 
Parameters
x
X Direction
y
Y Direction
z
Z Direction
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDocument As SolidEdgePart.PartDocument = Nothing
        Dim objStudyOwner As SolidEdgePart.StudyOwner = Nothing
        Dim objStudy As SolidEdgePart.Study = Nothing
        Dim objLoadOwner As SolidEdgePart.LoadOwner = Nothing
        Dim objLoad As SolidEdgePart.Load = Nothing
        Dim X As Double = -0.0
        Dim Y As Double = 1.0
        Dim Z As Double = -0.0

        Try
            OleMessageFilter.Register()

            ' Connect to Solid Edge
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objPartDocument = objApplication.ActiveDocument

            objStudyOwner = objPartDocument.StudyOwner
            objStudy = objStudyOwner.Item(1)
            objStudy.GetLoadOwner(objLoadOwner)
            objLoad = objLoadOwner.Item(1)

            objLoad.SetLoadDirection(X, Y, Z)

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

Load Object  | Load Members  | Solid Edge ST3 - What's New