Change object layer by display color?

Hi,

I’m importing a pdf file of a map. When I do this different types of element (building, grass, asphalt, parking…) has different display colors. I would like to use the color to move the objects to seperate layers based on color. It is possible 50 different colors so do it manually is no fun. Any hints on how to do that?

Thanks,
Roger

Hi @roger.olofsson,

Can you post a sample file?

Thanks,

– Dale

1 Like

Hi,
Here is one. The original is a pdf file that I read into illustrator and then I imported the Illustrator file to Rhino.
Thanks

Sportcenter 01 extended artboard.3dm (4.6 MB)

Hi @roger.olofsson,

Have this Python script a go.

ChangeLayerByColor.py (1.8 KB)

– Dale

1 Like

Worked perfectly! Thanks :smiley: