找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1362|回复: 4

[研讨] 图层组过滤器&特性过滤器

[复制链接]

已领礼包: 9个

财富等级: 恭喜发财

发表于 2019-2-20 09:46:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
;;找到的关于图层组过滤器和特性过滤器的资料,搬运过来

;;By Lee Mac

;;原帖地址:不让贴URL ...


I'm a bit confused when it comes to Layer Filters and wonder whether someone with more experience in this area could lend a hand.  

Here's where I'm at:

It appears that Layer Group Filters are stored in the ACLYDICTIONARY dictionary, contained in the Extension Dictionary of the Layers Collection. Layer Property Filters also appear in this dictionary.

The ACLYDICTIONARY dictionary will not be present in the Extension Dictionary of the Layers Collection unless there is (or has been) a Layer Filter of some kind in the drawing.

Layer Property Filters also appear in the ACAD_LAYERFILTERS dictionary, also contained in the Extension Dictionary of the Layers Collection, but Layer Group filters do not appear in this dictionary. And again, ACAD_LAYERFILTERS will not be present in the Extension Dictionary of the Layers Collection unless there is (or has been) a Layer Filter of some kind in the drawing.

Ok.

Now, I can copy XRecords to and from these dictionaries and create the dictionaries if they aren't present to copy into; but the question is, how do I handle Layer Property Filters since they appear in both dictionaries? Copy to and from both?

Also, it seems that when I copy the Filters between drawings, the Property Filter entry in the ACAD_LAYERFILTERS dictionary will take on an
anonymous name (something like *A#), and because of this, I am somehow able to have two Layer Property Filters of the same name present in the same drawing.

As you can probably tell, I've been going round in circles with this for a while now and I'm pretty confused to say the least. I am in need of someone who has perhaps attempted this before to offer some guidance.

Any help is appreciated.

Lee



;;简单归纳一下:
;;1.图层组过滤器存储在ACLYDICTIONARY字典中
;;2.图层特性过滤器既出现在ACLYDICTIONARY字典中,又出现在ACAD_LAYERFILTERS字典中
;;3.ACLYDICTIONARY字典和ACAD_LAYERFILTERS字典均包含在图层集合的扩展字典中,除非在图形中创建(或已经存在)某种组过滤器/图层特性过滤器,否则ACLYDICTIONARY字典/ACAD_LAYERFILTERS字典将不会出现在图层集合的扩展字典中
;;4.此外,在图纸之间复制过滤器时,ACAD_LAYERFILTERS字典中的属性过滤器条目将采用匿名名称



论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 4365个

财富等级: 富可敌国

发表于 2019-2-20 10:05:47 | 显示全部楼层
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 9个

财富等级: 恭喜发财

 楼主| 发表于 2019-2-20 10:18:07 | 显示全部楼层

我不是翻译,只是把里面有用的信息归纳了一下,见笑了。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 6468个

财富等级: 富甲天下

发表于 2019-2-21 00:10:00 | 显示全部楼层
谢谢分享。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复

使用道具 举报

已领礼包: 6056个

财富等级: 富甲天下

发表于 2019-2-22 09:40:40 | 显示全部楼层
直接看中文翻译就好了。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-4-27 03:28 , Processed in 0.297004 second(s), 36 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表