Solid Edge Part Type Library
SetNASTRANScratchDirectoryLocation Method
Description
Set the location of NASTRAN scratch directory.
Syntax
Visual Basic
Public Sub SetNASTRANScratchDirectoryLocation( _
   ByVal bstrScratchDirLoc As String _
) 
Parameters
bstrScratchDirLoc
Remarks
If user wants to save the analysis result files to some other location then he can set his own scratch directory on the studyowner by using below method.
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 = "F:\MyScratchDir"

        Try
            OleMessageFilter.Register()

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

            objStudyOwner = objAssemblyDocument.StudyOwner
            objStudyOwner.SetNASTRANScratchDirectoryLocation(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