我用的是以下这个方法,怎么没有反应? public static ObjectId DrawLeader(Point3d startPoint,Point3d endPoint) { ObjectId leaderId = ObjectId.Null;// The return value for this function Database db = HostApplicationServices.WorkingDatabase;//获得当前工作空间的数据库 using (Transaction trans = db.TransactionManager.StartTransaction()) { BlockTable bt = trans.GetObject(db.BlockTableId, OpenMode.ForWrite) as BlockTable; BlockTableRecord btr = bt[BlockTableRecord.ModelSpace].GetObject(OpenMode.ForWrite) as BlockTableRecord; Leader leader = new Leader();// 标注线(带箭头) leader.AppendVertex(startPoint); leader.AppendVertex(endPoint); lineId = btr.AppendEntity(leader); trans.AddNewlyCreatedDBObject(leader, true); trans.Commit(); } return leaderId ; }