I am currently working on a script for re-ordering everything in an imported .dwg file by layer colors. The issue here is, that often we will get files from clients or other stakeholders, which are very messy and can have hundreds of layers, and since colors most often correspond to line widths in CAD files, it is relevant to be able to sort objects by layer colors.
The issue here is, that while the Dynamic Geometry pipeline (which is just about my favorite component) can read all the geometry types we could wish for, the “Modify Object Attributes” component cannot change the layer of blocks, hatches, etc.
Can this be fixed relatively easily? Or is there a workaround that you can think of?
Thanks in advance!