parameters: (obj,ifcproduct)
docstring: sets the color of an object
docstring_summary: sets the color of an object
docstring_tokens: sets the color of an object
function: def setColor(obj,ifcproduct):
  
      """sets the color of an object"""
  
      global colors
  
      color = importIFCHelper.getColorFromProduct(ifcproduct)
      colors[obj.Name] = color
      if FreeCAD.GuiUp and color:
          obj.ViewObject.ShapeColor = color[:3]
function_tokens: def setColor ( obj , ifcproduct ) : global colors color = importIFCHelper . getColorFromProduct ( ifcproduct ) colors [ obj . Name ] = color if FreeCAD . GuiUp and color : obj . ViewObject . ShapeColor = color [ : 3 ]