Jump to content

AutoCAD Vb.net, What is a eLockViolation?


muck

Recommended Posts

I am working on some VB.net an I am geting eLockViolation error message.

That is that? I know has something to do with locking the AutoCAD database

before change but I don't understand what it is and how to avoid it.

 

Thank you,

Link to comment
Share on other sites

Yes, I looked at that thread yesterday.

I still need some good examples and a explanation of what it is.

I guess if a person thought a AutoCAD dwg file as a book a document

would be a page in that book? Maybe?

Thank you,

Link to comment
Share on other sites

Ok, According to the link the Using statement ends the database is unlocked.

 

Is a document considered to be a layout?

 

Thank you,

Link to comment
Share on other sites

Ok, According to the link the Using statement ends the database is unlocked.

 

Is a document considered to be a layout?

 

... What does Object Browser tell you about the difference between the Document, and Layout Types?

Link to comment
Share on other sites

Actually that is a little bit incorrect. This is how you can quickly and easily find the correct type using the object browser.

 

Open up the object browser and where it says browse make sure to change it to my solution. Next make sure you have at least referenced accoremgd.dll, acdbmgd.dll, and acmgd.dll in your project. Now in the textbox that is marked type in document. Depending on your current project you should have two items pop up in the Autodesk namespace that are a match. One is in the Autodesk.AutoCAD.ApplicationServices namespace and the other is in the Autodesk.AutoCAD.EditorInput.Editor namespace. One is a class and the other is a property. You will obviously want the one that is a class. You can tell the difference between the two by looking at their icons. If you are unsure of what the icons mean then look at this webpage.

 

So the correct namespace is Autodesk.AutoCAD.ApplicationServices and not Autodesk.AutoCAD.Application.Services.

 

Additionally your answer above for Layout is incorrect. It is not Autodesk.AutoCAD.Database.Services but Autodesk.AutoCAD.DatabaseServices

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...