Sets the layer to be referenced by this entity (DXF 8).
Returns eOk if successful, or an appropriate error code if not.