Renumbers the PointNumber to a new value.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.0
Syntax
C#
public uint Renumber( uint newPointNumber, PointNumberResolveType resolveType )
Visual Basic
Public Function Renumber ( _ newPointNumber As UInteger, _ resolveType As PointNumberResolveType _ ) As UInteger
Visual C++
public: unsigned int Renumber( unsigned int newPointNumber, PointNumberResolveType resolveType )
Parameters
- newPointNumber
- Type: System.UInt32
Specified the new pointNumer.
- resolveType
- Type: Autodesk.Civil.DatabaseServices.PointNumberResolveType
Specified the way to resolve the point number duplication situation.
Return Value
The new PointNumber. If a CogoPoint with newPointNumber already exists, this method will try to find another new valid PointNumber based on the enum value of resolveType. Therefore the return value may differ from the newPointNumber passed to the method.Remarks
If resolveType is PointNumberResolveType.UseNext in duplicate situation, the new PointNumber will be the next valid PointNumber.
If resolveType is PointNumberResolveType.Overwrite in duplicate situation, the CogoPoint with newPointNumber will be overwrite by current CogoPoint.
Exceptions
Exception | Condition |
---|---|
System.InvalidOperationException | Thrown when the CogoPoint is a ProjectPoint and is not checked out, and the "Allow Checked-In Points to be Modified" setting is false. |