shilvyan  

必须提交事务,只有事务提交才能在CAD图形中显示出来。

              using (Transaction trans = db.TransactionManager.StartTransaction())
                    {
                        bool success1 = false;
                        //画一条多线段,并实时显示出来
                        DrawDMFX(polylineEndPoint, polylineStartPoint, LoadLinetype("RL", "C:/Users/Administrator/Desktop/断面方面.lin", ref success1));
                        dmCS.DmFWJ = CalDmFWJ(polylineStartPoint, polylineEndPoint);
                        trans.Commit();//必须进行事务提交,否则多线段不显示
                    }

posted on 2013-05-10 10:26  shilvyan  阅读(643)  评论(0编辑  收藏  举报