Solid Edge Part Type Library
Solve Method
Description
Solve the study.
Syntax
Visual Basic
Public Sub Solve( _
   ByVal pDocument As Object, _
   ByVal nMeshOnly As Integer _
) 
Parameters
pDocument
nMeshOnly
Remarks
A study can be only meshed or meshed and solved using this function. The second parameter determines the operation. If it is set to 1 then model will be meshed only.
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 nMeshORSolve As Integer = 1

        Try
            OleMessageFilter.Register()

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

            objStudyOwner = objPartDocument.StudyOwner
            objStudyOwner.GetActiveStudy(objStudy)
            objStudy.Solve(objPartDocument, nMeshORSolve)

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

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