OpenSTAAD V8i
This function retrives the current STAAD.Pro process ID.
Dim objOpenSTAAD As Object 'Get the application object Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD") 'Get Process ID objOpenSTAAD.GetProcessId