private void xtract_btnScaleBlkNew_Click(object sender, EventArgs e)
{
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
using (doc.LockDocument())
{
using (Transaction tr = db.TransactionManager.StartTransaction())
{
BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForWrite) as BlockTable;
foreach (ObjectId id in bt)
{
BlockTableRecord btRecord = (BlockTableRecord)tr.GetObject(id, OpenMode.ForWrite);
foreach (ObjectId objID in btRecord)
{
DBObject obj = tr.GetObject(objID, OpenMode.ForWrite) as DBObject;
if (obj
is AttributeDefinition
) {
//
}
{
//
}
}
}
tr.Commit();
}
}
ed.Regen();
}