Description
Get location data for the sensor. The
sensor's center point is invalid; all other points are valid
choices for the location data.
Property type
Read-only property
Syntax
[Visual Basic .NET] |
Public Property LocationData() As IAgLocationData
|
[C#] |
public IAgLocationData LocationData {get;}
|
[Managed C++] |
public: __property IAgLocationData^ get_LocationData();
|
[Unmanaged C++] |
public: HRESULT get_LocationData(
IAgLocationData ** ppRetVal
);
|
[Java] |
public IAgLocationData getLocationData();
|
Example
Define fixed location
[C#] |
Copy Code
|
sensor.SetLocationType(AgESnLocation.eSnFixed);
IAgPosition pos = sensor.LocationData as IAgPosition;
pos.AssignCartesian(595.20, -110.12, 4.6);
|
|
Define location from
Vector Geometry Tool point
[C#] |
Copy Code
|
sensor.SetLocationType(AgESnLocation.eSnLocationCrdnPoint);
IAgLocationCrdnPoint vgtPoint = sensor.LocationData as IAgLocationCrdnPoint;
vgtPoint.PointPath = "Facility/Facility1 Center";
|
|
Define fixed location
[Visual Basic .NET] |
Copy Code
|
sensor.SetLocationType(AgESnLocation.eSnFixed)
Dim pos As IAgPosition = TryCast(sensor.LocationData,
IAgPosition)
pos.AssignCartesian(595.2, -110.12, 4.6)
|
|
Define location from
Vector Geometry Tool point
[Visual Basic .NET] |
Copy Code
|
sensor.SetLocationType(AgESnLocation.eSnLocationCrdnPoint)
Dim vgtPoint As IAgLocationCrdnPoint =
TryCast(sensor.LocationData, IAgLocationCrdnPoint)
vgtPoint.PointPath = "Facility/Facility1
Center"
|
|
See Also