Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
'' Open the ViewportTable for read
Dim acViewTbl As ViewportTable
acViewTbl = acTrans.GetObject(acCurDb.ViewportTableId, OpenMode.ForRead)
For Each acObjId As ObjectId In acViewTbl
If acObjId <> Nothing Then
Dim acViewTblRec As ViewportTableRecord
acViewTblRec = acTrans.GetObject(acObjId, OpenMode.ForWrite)
End If
Next
acTrans.Commit()
'' Dispose of the transaction
End Using
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |