FZ_PanDAForm.MoveUnit
Moves a processing unit
Public Shared Function MoveUnit( _
ByVal srcUnitNo As Integer, _
ByVal destUnitNo As Integer _
) As Integer
Parameters
srcUnitNo
|
Move source processing unit number
|
Input
|
destUnitNo
|
Move destination processing unit number
|
Input
|
Return Value
Returns 0 when moving a processing unit succeeded.
Otherwise returns a non-zero value.
Description
Moves the unit of the specified move source processing unit number to the specified move destination unit number.
The processing target scene is a current scene.
* When you execute this method, basically disable a measurement trigger (execute
MeasureStop ) before the execution.
After switching a scene group, enable the measurement trigger (execute
MeasureStart ).
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Dim unitNo As Integer ' Current unit number
' Disables a measurement trigger
MeasureStop()
' Moves the processing unit 1 to unit 2
CopyUnit(1, 2)
' Moves a current unit down by one
CopyUnit(unitNo, unitNo)
' Enables a measurement trigger
MeasureStart()
End Sub