|
发表于 2015-3-10 16:08:00
|
显示全部楼层
public static void Getfont()
{
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction ctrans = db.TransactionManager.StartTransaction())
{
TextStyleTable cTable = (TextStyleTable)ctrans.GetObject(db.TextStyleTableId, OpenMode.ForRead);
int i = 0;
foreach (ObjectId tId in cTable)
{
TextStyleTableRecord tst = (TextStyleTableRecord)ctrans.GetObject(tId, OpenMode.ForRead);
CommFun.Printf(tst.Name);
}
ctrans.Commit();
}
}
|
|