« Back to Product

Documentation

IPS_SetIcon

Require: Symcon >= 2.1

 bool IPS_SetIcon (int $ObjectID, string $Icon) 

Parameters

ObjectID

The ID of the object

Icon

Filename of the icon without path and extension

Returns

If the function succeeds, it returns TRUE, otherwise FALSE.

Description

This function assigns an icon to the object with the ID ObjectID. The name of the icon is the filename without the extension or path.

Warning

A list of available icons can be found under Icons. In the tile visualization the name of every Font Awesome icon can be used (light style and brand icons), e.g. "lightbulb". The classic icon names, as returned by UC_GetIconList, are shown there as a similar Font Awesome icon.

Example

IPS_SetIcon(47381, "weather");
Any questions?