FZ_PanDAForm.LoadScene
Performs a scene data load processing
Public Shared Function LoadScene( _
ByVal sceneNo As Integer, _
ByVal fileName As String _
) As Integer
Parameters
sceneNo
|
Load destination scene number
|
Input
|
fileName
|
Load source file name
The load source file name must be specified as an absolute path.
|
Input
|
Return Value
Returns 0 when loading a scene data succeeded.
Otherwise returns a non-zero value.
Description
Loads the scene data from a file to the specified scene number.
* When you execute this method, basically disable a measurement trigger (execute
MeasureStop ) before the execution.
After performed a scene data load processing, enable the measurement trigger (execute
MeasureStart ).
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
' Disables a measurement trigger
MeasureStop()
' Loads data to the scene 0
LoadScene(0, GetCoreRAPath()+"scene0.scn")
' Enables a measurement trigger
MeasureStart()
End Sub