How to get the element color of a drawing

For example, the following drawings have black text, as well as other green and red colors.I would like to ask how to obtain the color of the layer when dividing the structure tree according to the layer?

So normally getNodesEffectiveFaceColor and getNodesEffectiveLineColor would give you the colors on a node but unfortunately for drawings the colors are sometimes baked into the actual mesh representing those objects so you would have to retrieve them from there.

Can you try testing the above mentioned functions to see if they get you the color data?

1 Like

I tested these two methods,getNodesEffectiveFaceColor and getNodesEffectiveLineColor cannot get the color of the layer.Are there any other methods that can be used?