public static bool HasTag(this ObjectId id, string tag) { using (var trans = id.Database.TransactionManager.StartTransaction()) { var dbo = (DBObject)trans.GetObject(id, OpenMode.ForWrite); return(DbHelper.HasTag(dbo, tag)); } }
public static bool HasTag(this ObjectId id, string tag) { using (var trans = id.Database.TransactionManager.StartTransaction()) { var dbo = (DBObject)trans.GetObject(id, OpenMode.ForWrite); return(DbHelper.HasTag(dbo, tag)); } }