cns_setNodeTypeIcon

Allows to set an icon for the given node type.

Synopsis

int cns_setNodeTypeIcon(string sNodeType, string sIconPath);

Parameters

Parameter Description
sNodeType ID of the node type
sIconPath Icon path

Return value

Returns 0 in case that the icon path is set or an corresponding error code in case of an error.

Errors

Possible errors:

  • -1 => The node type does not exist

Description

This function sets an icon for the given node type. The path relative to the pictures folder (project or installation directory) must be specified.

main()
{
  cns_setNodeTypeIcon("nodeType_1", "myIcon.png");
}

Availability

UI, CTRL