ID : 271
AreaPos
Function
To return the center of detection area by position type data.
Syntax
AreaPos(detection area number)
Guaranteed entry
- Detection area number
- Designate a detection area number (0-31) by integer type data.
Return value
Return the center point of detection area by position type data.
Description
The center of detection area used in the area function is returned by position type data.
Related Terms
Area, SetArea, ResetArea, AreaSize, GetAreaDetected, ClearAreaDetected, Area Function
Attention
FIG element of the return value is "-1."
Example
'!TITLE "Acquiring Center Position of Interference Check Area
and Direction of Cuboid by Position Type"
' Assign the center position of the interference check area
and direction of cuboid in the areanumber 1 to aaa
Sub Sample_AreaPos
Dim aaa As Position
' Assign the center position of the interference check area
and direction of cuboid to aaa
aaa = AreaPos( 1 )
' Display acquired information on the message output window
PrintDbg aaa
End Sub
ID : 271