// Editor Ed = Application.DocumentManager.MdiActiveDocument.Editor;
//Database Db = Application.DocumentManager.MdiActiveDocument.Database;
using (var trans = Db.TransactionManager.StartTransaction())
{
var obj= trans.GetObject(Db.UcsTableId, OpenMode.ForRead);
UcsTable t = obj as UcsTable;
if (t != null)
{
foreach (var oId in t)
{
var uceRec = trans.GetObject(oId,OpenMode.ForRead) as UcsTableRecord;
//XAxis是向量
Ed.WriteMessage("\n orange=[" + uceRec.Origin.X+","+ uceRec.Origin.Y + "," + uceRec.Origin.Z+ "]\n "
+"XAxis:["+ uceRec.XAxis.X +","+ uceRec.XAxis.Y+ ","+","+ uceRec.XAxis.Z+ "]\n");
}
}
}