[Link]
com/2013/08/27/etabs-oapi-how-to-get-started/
Sub template_New_model()
' EXAMPLE: Creating a new model and save it
Dim ret As Long ' return value from OAPI calls
Dim filename As String
filename = "C:\[Link]"
Dim myEtabs As [Link] ' the OAPI class has methods related to high level
program stuff, like .applicationStart()
Dim myModel As [Link] ' the SapModel class is where most things we are
interested in reside
' Create the OAPI object
Set myEtabs = CreateObject("[Link]") ' Create the OAPI object
' Start ETABS
[Link]
' Assign the resulting SAP model
myModel = [Link]
' Initialise a new model
[Link] (eUnits_kN_m_C) ' Initialize a new model with units)
' Create a new model file
ret = [Link] ' actually create the blank file
' DO STUFF
'Save the file
ret = [Link](filename) ' save the model
' close ETABS
ret = [Link](False) ' exit ETABS
Set myModel = Nothing
Set myEtabs = Nothing
End Sub