Solid Edge Part Type Library
GetNASTRANScratchDirectoryLocation Method
Description
Get the location of NASTRAN scratch directory.
Syntax
Visual Basic
Public Sub GetNASTRANScratchDirectoryLocation( _
   ByRef bstrScratchDirLoc As String _
) 
Parameters
bstrScratchDirLoc
Remarks
NASTRAN scratch directory is a directory under temp location of the user. When we solve any study several files like F06, F04, results file are created in this directory. From UI location of this directory can be changed from SE optionsàFile locations dialog.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objAssemblyDocument As SolidEdgeAssembly.AssemblyDocument = Nothing
        Dim objStudyOwner As SolidEdgePart.StudyOwner = Nothing
        Dim strScratchDirLoc As String = ""

        Try
            OleMessageFilter.Register()

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

            objStudyOwner = objAssemblyDocument.StudyOwner
            objStudyOwner.GetNASTRANScratchDirectoryLocation(strScratchDirLoc)

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

StudyOwner Collection  | StudyOwner Members  | Solid Edge ST3 - What's New