private void OnObjectModified(object sender, ObjectEventArgs e)
{
BlockReference br;
if (e
.DBObject.GetType() == typeof(BlockReference
)) {
br = (BlockReference)e.DBObject.ObjectId.GetObject(OpenMode.ForRead);
}
else if (e
.DBObject.GetType() == typeof(AttributeReference
)) {
br = (BlockReference)e.DBObject.OwnerId.GetObject(OpenMode.ForRead);
}
try
{
if (br.Name.StartsWith("ZDB", True, CultureInfo.CurrentCulture))
{
\\Handle this later after the command has ended
QueueEvent = true;
br.Close();
br.Dispose();
}
}
catch {}
}