M

NumberingSchema.SwapNumber

Description:
Replaces an existing number with a another one that exists in the same partition.
public IList<ElementId> SwapNumber(
	string partition,
	int firstNumber,
	int secondNumber
)
  • String
    partition
    Name of the partition that identifies the sequence containing the number to be changed.
  • Int32
    firstNumber
    Number to be swapped
  • Int32
    secondNumber
    Number to be swapped
Return Value IList<ElementId> A collection of elements affected by the change of the number
  • The sequence partition does not exist in the schema. -or- The specified sequence does not contain any elements with the given firstNumber. -or- The specified sequence does not contain any elements with the given secondNumber.
  • A non-optional argument was null
  • The value of firstNumber must be in the range from 1 to the maximum value for an Integer type -or- The value of secondNumber must be in the range from 1 to the maximum value for an Integer type
  • Either the schema or its document cannot be modified at present. -or- Can't access the number while an async operation is running.