I am using AutoCAD 2014 and vb.net 2010 and coverting code from 2010 to 2014.
This like does not work anymore.
Using locked As Autodesk.AutoCAD.ApplicationServices.DocumentLock = ThisDrawing.LockDocument()
Any clue as to why?
These are the lines for ThisDrawing
Public ReadOnlyProperty ThisDrawing() AsDocument
Get
ReturnApplication.DocumentManager.MdiActiveDocument.GetAcadDocument()
EndGet
EndProperty
Solved! Go to Solution.
Solved by BlackBox_. Go to Solution.
Dim ThisDrawing As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument Using locked As Autodesk.AutoCAD.ApplicationServices.DocumentLock = ThisDrawing.LockDocument() '' Do something here End Using
"How we think determines what we do, and what we do determines what we get."