Gets the PVI in the collection closest to the given station and elevation.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public ProfilePVI GetPVIAt( double station, double elevation )
VB
Public Function GetPVIAt ( station As Double, elevation As Double ) As ProfilePVI
C++
public: ProfilePVI^ GetPVIAt( double station, double elevation )
Parameters
- station Double
- Station value.
- elevation Double
- Elevation value.
Return Value
ProfilePVIExceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when ProfilePVICollection is an empty collection. |
Example
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;