This is a question that came up at the recent Cloud Accelerator in Prague: how can you change the border colour for all raster image objects in the drawing? We could do this by placing the raster image on a particular layer, but the developer was looking for a global override. The answer ended up being really simple with a DrawableOverrule. Here’s some C# code that does this: using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.GraphicsInterface; using Autodesk.AutoCAD.Runtime; namespace RasterImageOverrule { public class RasterImageDisplayOverrule : DrawableOverrule { public short Color { get; set; } public override void ViewportDraw(Drawable d,... Read more →