Profile |
Exception | Condition |
---|---|
ArgumentException | Thrown when the value of the new PVI station is less than the start station or greater than the end station of the profile's parent alignment. |
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;