cns_changeNodeTypeName

Changes the ID of a node type.

Synopsis

int cns_changeNodeTypeName(string sOldName, string sNewName);

Parameters

Parameter Description
sOldName Current ID of the node type
sNewName New ID of the node type

Return value

Possible return values:

  • 0 => ID successfully changed

  • -1 => The given ID does not exist

  • -2 => The new ID is already used

Errors

Possible errors:

  • Node type with the ID sOldName does not exist (-1)

  • The ID sNewName is already used (-2)

Description

This function changes the ID of the given node type.

main()
{
  cns_changeNodeTypeName("MyFirstNodeType", "MySecondNodeType");
}

Availability

UI, CTRL