Gets the PVI in the collection closest to the given station and elevation.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public ProfilePVI GetPVIAt(
	double station,
	double elevation
)
Visual Basic
Public Function GetPVIAt ( _
	station As Double, _
	elevation As Double _
) As ProfilePVI
Visual C++
public:
ProfilePVI^ GetPVIAt(
	double station, 
	double elevation
)

Parameters

station
Type: System..::..Double
Station value.
elevation
Type: System..::..Double
Elevation value.

Examples

CopyC#
1//  Find the PVI close to station 1000 elevation -70.
2ProfilePVI oProfilePVI = oProfile.PVIs.GetPVIAt(1000, -70);
3ed.WriteMessage("PVI closest to station 1000 is at station: {0}", oProfilePVI.Station);
4// Add another PVI and slightly adjust its elevation.
5oProfilePVI = oProfile.PVIs.AddPVI(607.4, -64.3);
6oProfilePVI.Elevation -= 2.0;

Exceptions

ExceptionCondition
System..::..InvalidOperationException Thrown when ProfilePVICollection is an empty collection.

See Also