cOAPIApplicationExit Method

Exits the application.

Namespace:  ETABS2016
Assembly:  ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
int ApplicationExit(
	bool FileSave
)

Parameters

FileSave
Type: SystemBoolean
If this item is True the existing model file is saved prior to closing the application.

Return Value

Type: Int32
This function returns zero if the function succeeds and nonzero if it fails.
Remarks

If the model file is saved then it is saved with its current name. Any instance of cSapModel should be set to nothing after calling this function.

Examples
VB
Public Sub Example()
       Dim SapModel As cSapModel
       Dim EtabsObject As cOAPI
       Dim ret As Integer = -1

   'create ETABS object
       EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject")

   'start ETABS application
       ret = EtabsObject.ApplicationStart()

   'close ETABS
       EtabsObject.ApplicationExit(False)

   'clean up variables
       SapModel = Nothing
       EtabsObject = Nothing
   End Sub
See Also