Gets a string indicating a unique name for the Alignment. The input string could be a name template.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public static string GetNextUniqueName(
	string alignmentName
)
Visual Basic
Public Shared Function GetNextUniqueName ( _
	alignmentName As String _
) As String
Visual C++
public:
static String^ GetNextUniqueName(
	String^ alignmentName
)

Parameters

alignmentName
Type: System..::..String
A proposed Alignment name.

Remarks

You can use this method to get a guaranteed unique name for the Alginment. Every time you call this method, the internal counter increments by one, even if no Alignment is created. For example:
CopyC#
1String name1 = Alignment.GetNextUniqueName (..., "A");   //  name1 = "A"
2String name2 = Alignment.GetNextUniqueName (..., "A");   //  name2 = "A(1)"
3String name3 = Alignment.GetNextUniqueName (..., "Alignment - (<[Next Counter(CP)]>)");   //  name3 = "Alignment - (1)"
4String name4 = Alignment.GetNextUniqueName (..., "Alignment - (<[Next Counter(CP)]>)");   //  name4 = "Alignment - (1)"

See Also