cSapModelGetModelFilename Method |
Returns a string that represents the filename of the current model,
with or without the full path.
Namespace:
ETABS2016
Assembly:
ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntaxstring GetModelFilename(
bool IncludePath = true
)
Function GetModelFilename (
Optional IncludePath As Boolean = true
) As String
String^ GetModelFilename(
bool IncludePath = true
)
abstract GetModelFilename :
?IncludePath : bool
(* Defaults:
let _IncludePath = defaultArg IncludePath true
*)
-> string
Parameters
- IncludePath (Optional)
- Type: SystemBoolean
A boolean (True or False) value. When this item is True,
the returned filename includes the full path where the file is located.
Return Value
Type:
String
Returns a string that represents the filename of the current model,
with or without the full path.
Remarks
ExamplesPublic Sub Example()
Dim SapModel As cSapModel
Dim EtabsObject As cOAPI
Dim ret As Integer = -1
EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject")
ret = EtabsObject.ApplicationStart()
SapModel = EtabsObject.SapModel
ret = SapModel.File.Save("C:\CSI_API_temp\API_1-001.edb")
MsgBox(SapModel.GetModelFilename())
EtabsObject.ApplicationExit(False)
SapModel = Nothing
EtabsObject = Nothing
End Sub
See Also