对CAD数据库进行写操作时,要把当前文档锁住,即添加如下两句代码:
DocumentLock docLock = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.LockDocument();
//执行代码
docLock.Dispose();
shilvyan |
|
||
Copyright © 2024 shilvyan
Powered by .NET 9.0 on Kubernetes |