CogoPointRenumber(UInt32, PointNumberResolveType) Method

Renumbers the PointNumber to a new value.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public uint Renumber(
	uint newPointNumber,
	PointNumberResolveType resolveType
)

Parameters

newPointNumber  UInt32
Specified the new pointNumer.
resolveType  PointNumberResolveType
Specified the way to resolve the point number duplication situation.

Return Value

UInt32
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.
Exceptions
ExceptionCondition
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.
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.
See Also