Hi All,
I am new to automating AutoCAD using VB_Net. I think I am stuck up in something which should be pretty simple. But I am not able to solve it after googling and breaking my head over it for 3 days now.. What I am trying to do is this:

Read an open drawing, crunch the data and generate another drawing based on some logic on the first drawing. I am able to read the first drawing quite OK. The problem begins when I try to create a new drawing and draw on it. I dont know what is the best way to open a new drawing. I tried it using the DocumentManager.Add method. But, I am not able to set the newly created drawing as the active drawing. I tried various methods to draw on the latest darwing, but I get an error of eLock.

Could somebody help me out with this problem?

Thanks.