table.Position = new Point3d(pos1, pos2, 0.0);
table.GenerateLayout();
BlockTableRecord sp = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord;
sp.AppendEntity(table);
tr.AddNewlyCreatedDBObject(table, true);
table.Position = new Point3d(pos2, pos2, 0.0);
sp.AppendEntity(table);
tr.AddNewlyCreatedDBObject(table, true);