This article shows how to get spatial events using the API Ubisense .NET API. Spatial events are concerned with how objects interact with regions. For example, a person entering a defined region such as an 'Alarm Zone'.

You should know the information in the following article:
Before you start, remember:
Add the Ubisense references to your application
Create a
Ubisense.USpatial.Monitor.Schema object
Call
ConnectAsClient(string
cell_name)
on your schema object
See 'How to
connect as a client to schema services' for information on getting the
cell_name argument for a
USpatial::Cell instance. The
attached example also shows you how to connect to the first one found.
This guide shows you how to react to spatial events, the example here being that a person enters or leaves an 'Alarm Zone'.
The event client in this example is called
monitor_schema:
|
Add event handlers to react to people entering and leaving the 'Alarm Zone':
|