private static void HighlightTinSurf(bool on) { try { if (TinSurfIdIsValid() && DB != null) { using (Transaction tr = DB.TransactionManager.StartTransaction()) { TinSurface tinSurface = tr.GetObject(tinSurfId, OpenMode.ForRead) as TinSurface; if (on) { tinSurface.Highlight(); } else { tinSurface.Unhighlight(); } tr.Commit(); } } } catch { } }