Profile |
Exception | Condition |
---|---|
InvalidOperationException | Thrown when ProfilePVICollection is an empty collection. |
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;