When I loaded the drawing (AutoCAD *.dwg), many blocks display as white color so they are not good for readability. I dump their information and I see Color = Color.Black and ColorMethod = ByLayer. Which mean they should show in black but instead they show in white. I try to Explode() then apply Color.Black but it does not work either.
How to change BlockReference display color?
101 Views Asked by N.TW12 At
1
You need to loop through the Block entities and change the color there.
Beware the
entity.ColorMethodproperty controls where the color comes from:byEntityuses theentity.Color.byLayeruses the layer color (the layer is identified by theentity.LayerName)byParentinherits the color of the BlockReference.