STAAD.Pro Help

OS. Initiate OpenSTAAD in VB.Net

Note: You must have a model open in STAAD.Pro for this example. Otherwise your code will return an error.
  1. Add a button in Form1 and then add a click event to it.
  2. Declare mStaadObj as an Object by typing: Dim mStaadObj As Object.
  3. Type mStaadObj = GetObject(, "StaadPro.OpenSTAAD") and then press <Return>. This initiates OpenSTAAD and connects to the current STAAD.Pro model to your program.
Your program at this point should look like:
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim mStaadObj As Object
        mStaadObj = GetObject(, "StaadPro.OpenSTAAD")
    End Sub
End Class