After you call StartTransaction function, if you don't commit then Civil3D doesn't work finish.
So you can use StartTransaction like following.
using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
{
...
...
}
When you use using statement. Transaction.commit() is called automatically at the end of block.
댓글 없음:
댓글 쓰기