muck Posted August 17, 2014 Share Posted August 17, 2014 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, Quote Link to comment Share on other sites More sharing options...
ReMark Posted August 17, 2014 Share Posted August 17, 2014 Check this out. http://forums.autodesk.com/t5/NET/eLockViolation-error-code-creating-a-new-layer-and-make-it-work/td-p/3218810 Quote Link to comment Share on other sites More sharing options...
muck Posted August 18, 2014 Author Share Posted August 18, 2014 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, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 18, 2014 Share Posted August 18, 2014 You keep asking ambiguous questions, without posting any code. Have you read the documentation on this at all? Since I do not know your exact situation (no code), consider reading up on how to Lock and Unlock a Document HTH Quote Link to comment Share on other sites More sharing options...
muck Posted August 18, 2014 Author Share Posted August 18, 2014 Ok, According to the link the Using statement ends the database is unlocked. Is a document considered to be a layout? Thank you, Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 18, 2014 Share Posted August 18, 2014 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? Quote Link to comment Share on other sites More sharing options...
muck Posted August 18, 2014 Author Share Posted August 18, 2014 Layout is under Autodesk.AutoCAD.Database.Services. in object browser. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 18, 2014 Share Posted August 18, 2014 Layout is under Autodesk.AutoCAD.Database.Services. in object browser. Correct; what Namespace is the Document Type found? Quote Link to comment Share on other sites More sharing options...
muck Posted August 18, 2014 Author Share Posted August 18, 2014 Autodesk.AutoCAD.Application.Services Quote Link to comment Share on other sites More sharing options...
KeithBrown Posted August 19, 2014 Share Posted August 19, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.