Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
When i import an iges file in my drawing the objects color are defined in Hard, not by layer.
I would like to change it back to the layer color.
I tried a simple loop like
For Each obj In acadDoc.ModelSpace
obj.TrueColor.ColorMethod = acColorMethodByLayer
'obj.TrueColor = obj.Layer.TrueColor
Next obj
But for some reason when i open the LocalWindow view i see that the loop is not modifying the object color method, which is stuck on "acColorMethodByACI".
How can i change this?
I tried also calling the layer color as visible on the commented line but it doesnt work either (since the layer properties returns the layer name and not the actual layer, and i think it would just copy the color, not put an equivalence).
Solved! Go to Solution.