我把某一块参照与PropertyGrid进行了绑定,但是修改PropertyGrid属性时候就出错并提示为非写状态,但是我明明给这个块参照写操作Enable了,望版主指教
Dim lock As DocumentLock = AcadApp.DocumentManager.MdiActiveDocument.LockDocument() Using trans As Transaction = db.TransactionManager.StartTransaction() Dim brf2 As AttributeReference = trans.GetObject(id, OpenMode.ForWrite) Me.PropertyGrid1.SelectedObject = brf2 End Using lock.Dispose() |