乐筑天下

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

[编程交流] HELP: LISP/Macro script to br

[复制链接]

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 19:45:12 | 显示全部楼层 |阅读模式
I have a specific layer name that I constantly need to have it "bring to front" in terms of draw order.
 
Can someone help me with a LISP/Macro script that do just that?
 
Thanks
回复

使用道具 举报

16

主题

231

帖子

217

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
83
发表于 2022-7-5 20:00:02 | 显示全部楼层
Please refer to this thread.
 
http://www.cadtutor.net/forum/showthread.php?26055-Lisp-for-Automatic-Draw-Order-Command-to-a-specific-Layer.&highlight=draw+order%2C+dimension
 
All you would have to do is rename the layer and change the setting to "front"
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 20:08:34 | 显示全部楼层
You could use my Draw Order functions.
回复

使用道具 举报

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 20:11:34 | 显示全部楼层
 
Thanks. WIll go through it.
回复

使用道具 举报

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 20:20:42 | 显示全部楼层
 
Briefly saw it. But it cannot reorder by layer name only right? The layer still have to be selected, am i correct?
回复

使用道具 举报

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 20:33:51 | 显示全部楼层
 
This particular LISP from Lee Mac did the trick.
 
However the wildcard layer name do not seems to include xref layers.
 
I also include it as a specific layer name as such : "xref dwg name|Layer name". But no go.
 
Any advise to include xref layers?
 
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 20:37:58 | 显示全部楼层
 
Note that the programs listed on the main function page are only examples - you can design any custom program to call the draw order functions, including one that will prompt for a layer name.
 
Alternatively, there is my Layer Draw Order program.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 20:49:42 | 显示全部楼层
 
Since the standard AutoCAD DRAWORDER command operates with a set of objects as opposed to layer names, the supplied objects must be primary objects as AutoCAD commands which accept a selection set cannot work with nested objects.
 
Whereas, my Draw Order functions (as suggested above) will operate with objects derived from any owner (that is, primary objects in any layout, or objects contained within a block definition [an xref is merely a special type of block]).
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-12 01:14 , Processed in 0.355637 second(s), 68 queries .

© 2020-2025 乐筑天下

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