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