乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 115|回复: 9

[编程交流] AutoCAD Vb.net, What is a eLoc

[复制链接]

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 22:07:54 | 显示全部楼层 |阅读模式
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,
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 22:16:39 | 显示全部楼层
Check this out.
 
http://forums.autodesk.com/t5/NET/eLockViolation-error-code-creating-a-new-layer-and-make-it-work/td-p/3218810
回复

使用道具 举报

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 22:23:39 | 显示全部楼层
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,
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:34:23 | 显示全部楼层
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
回复

使用道具 举报

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 22:34:37 | 显示全部楼层
Ok, According to the link the Using statement ends the database is unlocked.
 
Is a document considered to be a layout?
 
Thank you,
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:43:57 | 显示全部楼层
 
... What does Object Browser tell you about the difference between the Document, and Layout Types?
回复

使用道具 举报

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 22:52:14 | 显示全部楼层
Layout is under Autodesk.AutoCAD.Database.Services. in object browser.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:55:14 | 显示全部楼层
 
Correct; what Namespace is the Document Type found?
回复

使用道具 举报

170

主题

347

帖子

174

银币

中流砥柱

Rank: 25

铜币
870
发表于 2022-7-6 23:07:20 | 显示全部楼层
Autodesk.AutoCAD.Application.Services
回复

使用道具 举报

0

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-6 23:14:26 | 显示全部楼层
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
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-4 11:37 , Processed in 0.520880 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表