Adds an Autodesk.Civil.DatabaseServices.ProfilePVI with a type of ProfileEntityType.Tangent to the collection.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public ProfilePVI AddPVI(
double station,
double elevation
) |
Visual Basic |
---|
Public Function AddPVI ( _
station As Double, _
elevation As Double _
) As ProfilePVI |
Visual C++ |
---|
public:
ProfilePVI^ AddPVI(
double station,
double elevation
) |
Parameters
- station
- Type: System..::..Double
Station value for the new PVI.
- elevation
- Type: System..::..Double
Elevation value for the new PVI.
Remarks
Examples
CopyC#
1
2ProfilePVI oProfilePVI = oProfile.PVIs.GetPVIAt(1000, -70);
3ed.WriteMessage("PVI closest to station 1000 is at station: {0}", oProfilePVI.Station);
4
5oProfilePVI = oProfile.PVIs.AddPVI(607.4, -64.3);
6oProfilePVI.Elevation -= 2.0;
Exceptions
Exception | Condition |
---|
System..::..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.
|
See Also