- UID
- 765067
- 积分
- 144
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2016-11-26
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
;;找到的关于图层组过滤器和特性过滤器的资料,搬运过来
;;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字典中的属性过滤器条目将采用匿名名称
|
|