/// <summary>
 /// Gets the effective block table record.
 /// </summary>
 /// <param name="blockref">The blockref.</param>
 /// <returns></returns>
 public static BlockTableRecord GetEffectiveBlockTableRecord(this BlockReference blockref)
 {
     return(blockref.GetEffectiveBlockTableRecord(blockref.Database.TransactionManager.TopTransaction));
 }