This method sets an attribute on a box. The behavior of the box after the
attribute is set depends entirely on the attribute that is set. Both built-in and
custom attributes can be set with this function. Setting the value of an attribute
that does not currently exist for the box essentially creates the attribute and sets
the value.
See the getPartById for an
example.