# How to set types colors with Excel?

**URL:** <https://forum.dynamobim.com/t/how-to-set-types-colors-with-excel/98066>\
**Category:** Packages\
**Tags:** revit, dynamo, orchid\
**Created:** [February 14, 2024, 6:51am UTC](https://forum.dynamobim.com/t/how-to-set-types-colors-with-excel/98066 "2024-02-14T06:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.oh4L57U](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@k.oh4L57U](https://forum.dynamobim.com/u/k.oh4L57U)\
**Post date:** [February 14, 2024, 6:51am UTC](https://forum.dynamobim.com/t/how-to-set-types-colors-with-excel/98066/1 "2024-02-14T06:51:39Z")

</div>

I tried using FamilyParameter.SetValue to read string/value to set the color of a type, but it didn’t work.

The warning said: The FamilyParameter.SetValue operation failed. The object reference is not set to an instance of an object.

Is it only possible to set colors by reading RGB values? Can materials set in Revit be directly selected and used by their names? Please give me some advice. Thank you very much.

 ![PWP_20240214_color_2024-02-14_03-48-19](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c46661b273c42566bcfbd17db892337347f16bf5.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/9/698c88640e1fbea5f19017e147f2924355390ce1.png)
