davehuhudave 发表于 2010-7-28 08:34:00

块参照与PropertyGrid的绑定问题

我把某一块参照与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()

davehuhudave 发表于 2010-7-28 12:51:00

anybody help?

davehuhudave 发表于 2010-7-28 12:57:00

提示 eNotOpenForWrite

雪山飞狐_lzh 发表于 2010-7-28 13:25:00

块参照设置为写打开了吗?
只看见属性参照的。。。

davehuhudave 发表于 2010-7-28 16:38:00

都是可写的
页: [1]
查看完整版本: 块参照与PropertyGrid的绑定问题