[实体对象] 请教:修改标注箭头形式时出错
public void Test5()
{
Document doc=Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
using (Transactiontr=doc.Database.TransactionManager.StartTransaction())
{
DimStyleTable dst=tr.GetObject(db.DimStyleTableId,OpenMode.ForRead) as DimStyleTable;
DimStyleTableRecord dstr=tr.GetObject(dst["ISO-25"],OpenMode.ForRead) as DimStyleTableRecord;
BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;
if (bt.Has("_ARCHTICK"))
{
dstr.UpgradeOpen();
dstr.Dimblk1 = bt["_ARCHTICK"];
dstr.Dimblk2 = bt["_ARCHTICK"];
}
tr.Commit();
}
}大家帮忙看一下,哪里出了问题,我想把那箭头改为建筑用的斜杠,但是出错了。
页:
[1]