Manage dwg layer in revit with dynamo

I’m working on a revit project in which there are about seventy dwg inserted, which must be printed. Each dwg has several layers, but they are all the same (they will be more than one
hundred layers). I created an excell file where in the columns there are all the names of the layers, their thicknesses and their colors. I must associate this excell file with the dwg in revit, to give it the weight projection in it object style and manage all the dwg with this script. But he does not associate me perfectly the thicknesses to all the dwg, and I can not understand where I’m wrong. Can you help me?