明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1676|回复: 8

如何让指定的图层默认(DRAWORDER,最后B)?(已解决。多谢Gu_xl版主)

[复制链接]
发表于 2011-7-13 23:16:33 | 显示全部楼层 |阅读模式
本帖最后由 669423907 于 2011-7-14 10:51 编辑

如何让指定的图层默认(DRAWORDER,最后B)?

(defun c:xlh()
(setq la(getvar"clayer"))
(setvar"clayer""7不打印")
(setvar"autosnap"63)
(command"xline""h");v
(while(/= 0(getvar"cmdactive"))
(command pause))
(setvar"clayer""0");la上一图层
(princ))

我一直用“7不打印”层画辅助线,怎样才能让“7不打印”层不受绘图顺序的约束,
只要用到“7不打印”层,都会让“7不打印”置于任何对象之下呢?

望大师们不吝赐教!
"觉得好,就打赏"
还没有人打赏,支持一下
 楼主| 发表于 2011-7-14 07:48:24 | 显示全部楼层
自己顶一回!
发表于 2011-7-14 08:15:07 | 显示全部楼层
 楼主| 发表于 2011-7-14 08:36:16 | 显示全部楼层
回复 Gu_xl 的帖子

非常感谢 Gu_xl版主。
这个。。。。。。。??????全英文
它认得我,而我却认不得它!!!
发表于 2011-7-14 09:04:20 | 显示全部楼层
也有另外一种方法,以颜色来实现,绘图顺序。利用CAD自带的ExpressTools的命令:

CDORDER

--------------------------------------------------------------------------------

Arranges the drawing order of objects by color number

You specify the color priority where the first color on the list is in front and the last color is in back.



CDORDER Dialog Box Options
Reordering method Draworder Arranges the drawing order of the selected objects using the DRAWORDER command.
Handles Arranges the drawing order of the selected objects by reordering objects in the drawing database. Objects are deleted and recreated in the order dictated by their color.


Draworder Location Front Reorders the colors in front-to-back sequence and places them in front of any objects not specified in the Color list.
Back Reorders the colors in front-to-back sequence and places them behind any objects not specified in the Color list.
Modify Blocks Orders objects in block insertions by color.
Move Up Moves the selected color higher in the display sequence.
Move Down Moves the selected color lower in the display sequence.


CDRAWORDER orders objects according to their displayed color. Selected objects can have their color assigned by BYLAYER or explicitly by object.

Note:
External reference objects are not affected by CDORDER with Draworder. Use Handles with objects that will be externally referenced. The use of Handles is recommended only for cases where Draworder is not sufficient.

评分

参与人数 1金钱 +15 收起 理由
669423907 + 15 谢谢帮助

查看全部评分

发表于 2011-7-14 09:16:11 | 显示全部楼层
回复 669423907 的帖子

(command "draworder" (ssget "x" '((8 . "7不打印"))) "" "b")

评分

参与人数 1金钱 +35 收起 理由
669423907 + 35 很好用!

查看全部评分

发表于 2011-7-14 09:53:55 | 显示全部楼层
学习了,留着有用
 楼主| 发表于 2011-7-14 10:17:13 | 显示全部楼层
回复 Gu_xl 的帖子

非常感谢 Gu_xl 版主热情帮助。
程序很好用。
 楼主| 发表于 2011-7-14 10:19:59 | 显示全部楼层
回复 carrot1983 的帖子

虽然我看不懂,也非常感谢carrot1983大师的帮助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-9-24 04:44 , Processed in 0.191213 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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