乐筑天下

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

[编程交流] My filter group don't wan

[复制链接]

14

主题

75

帖子

61

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-5 17:51:10 | 显示全部楼层 |阅读模式
Hi, all! Do you know why my filters groups that have been created didn't want to called back from "+LAYER" item sub menu by cursor visual clickable. How can do I should not need to type them anymore each do of my act ?
 
It said:
Invalid layer filter name.
 
 
Please, need help soon! all responce. Will be glad and appreciate ...
回复

使用道具 举报

17

主题

1274

帖子

25

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
260
发表于 2022-7-5 18:03:13 | 显示全部楼层
Are your Filters shown in the Layer Properties Manager?  How many Filters are in the Layer Properties Manager?
回复

使用道具 举报

14

主题

75

帖子

61

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-5 18:05:00 | 显示全部楼层
No, no at all. Just bad notice in command line like I mean an above. Only about 6 or 7 filters tombu. Is it look okey? or this is what be causes it.
回复

使用道具 举报

17

主题

1274

帖子

25

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
260
发表于 2022-7-5 18:14:15 | 显示全部楼层
No problem using it here.  Do those Filters work in the Layer Properties Manager?
回复

使用道具 举报

17

主题

1274

帖子

25

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
260
发表于 2022-7-5 18:17:58 | 显示全部楼层
Can you attach a blank drawing with those Filters in it?
回复

使用道具 举报

14

主题

75

帖子

61

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-5 18:24:27 | 显示全部楼层
Oh.. hayaa! I just remember that if I indeed create them with VLISP it's defun to MLY by Lee Mac on others forum. Here it is, the file what you want and I also attached the VLISP too for sample hope can help ease the burden of the investigation.  
 
 
 

[code](defun sdg_CreateLayerFilter (filtlst /  lfiltobj safecode safefilt) (vl-load-com) (setq LFILTOBJ (vla-addobject                  (vla-GetExtensionDictionary                    (vla-Get-Layers                      (vla-Get-ActiveDocument                        (vlax-Get-Acad-Object)                      )                    )                  )                  "ACAD_LAYERFILTERS"                  "AcDbDictionary"                )       SAFECODE (vlax-make-safearray 2 '(0 . 6))       SAFEFILT (vlax-make-safearray 12 '(0 . 6)) ) (vlax-safearray-fill SAFECODE (list 1 1 1 1 70 1 1)) (foreach        SUBLST FILTLST   (vlax-safearray-fill     SAFEFILT     (mapcar '(lambda (X) (vlax-make-variant X ) SUBLST)   )   (vla-addxrecord LFILTOBJ (nth 0 SUBLST))   (vla-setxrecorddata     (vla-item LFILTOBJ (nth 0 SUBLST))     SAFECODE     SAFEFILT   ) ) (prin1))(defun MakeLayer ( name colour linetype lineweight willplot bitflag description );; © Lee Mac 2010(or (tblsearch "LAYER" name)(entmake(append(list(cons 0 "LAYER")(cons 100 "AcDbSymbolTableRecord")(cons 100 "AcDbLayerTableRecord")(cons 2 name)(cons 70 bitflag)(cons 290 (if willplot 1 0))(cons 6(if (and linetype (tblsearch "LTYPE" linetype))linetype "CONTINUOUS"))(cons 62 (if (and colour (< 0 (abs colour) 256)) colour 7))(cons 370(if (minusp lineweight) -3(fix(* 100(if (and lineweight (
回复

使用道具 举报

17

主题

1274

帖子

25

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
260
发表于 2022-7-5 18:29:31 | 显示全部楼层
+LAYER does not work here on your drawing or mine when I select the Filter It says: Invalid layer filter name.
I've used this in the past, but it's been a while.  Don't know what's wrong?
回复

使用道具 举报

14

主题

75

帖子

61

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-5 18:39:04 | 显示全部楼层
ahhmm.. tombu Are you doing this with type it all or at the a sub menu you do click it by your pointer of mouse ???  How you do that and get it works to you why in my do is always failed ???
回复

使用道具 举报

17

主题

1274

帖子

25

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
260
发表于 2022-7-5 18:43:41 | 显示全部楼层
https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Error-Invalid-layer-filter-name-received-when-using-the-LAYER-command.html
Issue:
The user will receive an error stating "Invalid layer filter name" after using the +LAYER command and selecting the layer filter name.
Solution:
To avoid this behaviour, type in the full name of the layer filter.  This will open the Layer Properties Manager palette with the corresponding layer state active.
 
This worked for me.  Actually that's the way I used it before in a macro.
回复

使用道具 举报

14

主题

75

帖子

61

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-5 18:45:29 | 显示全部楼层
So we can't use it by clickable by our mouse.. Alright I'd forgot Don't looking to know?
the only way to call back a filter group directly to it. Just type in a full name of the filter group right?  am I correct?
 
Macro??? How??? could you tell me tombu if you don't mind to tell program it with macro..   Someone has posted about this, I don't know it was right or not??
 
 
  1. (defun c:[color=red][b]SFLG[/b][/color] ()(command "_.layer" "_filter" "_set" "Outdoor" "_exit" "")(princ))
 
 
 
#I hope you understand about my language knowledge that has lacking more then less and Thanks in advance.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-13 00:57 , Processed in 0.620534 second(s), 72 queries .

© 2020-2025 乐筑天下

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