Jump to content

Opening new drawing and drawing on it via _Net


bhairav

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...