找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1085|回复: 3

[求助] [求助]:新建图层后怎么回到建层前的当前图层!

[复制链接]
发表于 2007-11-23 10:06:58 | 显示全部楼层 |阅读模式

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

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

×
(defun c:jc ()
  (command ".layer" "m" "标注尺寸" "c" "3" "" "")
  (command ".layer" "m" "标注文字" "c" "3" "" "")
  (command ".layer" "m" "平面-区域及标注" "c" "3" "" "")
  (command ".layer" "m" "平面-隔墙尺寸" "c" "3" "" "")
  (command ".layer" "m" "墙面固定造型" "c" "4" "" "")
  (command ".layer" "m" "地面-材质标注" "c" "3" "" "")
  (command ".layer" "m" "地面-地坪尺寸" "c" "3" "" "")
  (command ".layer" "m" "墙体" "c" "2" "" "")
  (command ".layer" "m" "墙体-新1" "c" "7" "" "")
  (command ".layer" "m" "楼梯" "c" "4" "" "")
  (command ".layer" "m" "门" "c" "4" "" "")
  (command ".layer" "m" "门-门框" "c" "4" "" "")
  (command ".layer" "m" "门-门扇" "c" "4" "" "")
  (command ".layer" "m" "窗" "c" "5" "" "")  
  (princ)
)



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

已领礼包: 58个

财富等级: 招财进宝

发表于 2007-11-23 12:42:59 | 显示全部楼层
(setvar oldlay (getvar "clayer"))

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

使用道具 举报

 楼主| 发表于 2007-11-23 13:26:15 | 显示全部楼层
具体怎么弄!LSP我是空白!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2007-11-23 18:58:09 | 显示全部楼层
(defun c:jc ()
(setq oldlay (getvar "clayer"))
(command ".layer" "m" "标注尺寸" "c" "3" "" "")
(command ".layer" "m" "标注文字" "c" "3" "" "")
(command ".layer" "m" "平面-区域及标注" "c" "3" "" "")
(command ".layer" "m" "平面-隔墙尺寸" "c" "3" "" "")
(command ".layer" "m" "墙面固定造型" "c" "4" "" "")
(command ".layer" "m" "地面-材质标注" "c" "3" "" "")
(command ".layer" "m" "地面-地坪尺寸" "c" "3" "" "")
(command ".layer" "m" "墙体" "c" "2" "" "")
(command ".layer" "m" "墙体-新1" "c" "7" "" "")
(command ".layer" "m" "楼梯" "c" "4" "" "")
(command ".layer" "m" "门" "c" "4" "" "")
(command ".layer" "m" "门-门框" "c" "4" "" "")
(command ".layer" "m" "门-门扇" "c" "4" "" "")
(command ".layer" "m" "窗" "c" "5" "" "")
(setvar "clayer" oldlay)
(princ)
)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-24 03:12 , Processed in 0.486378 second(s), 37 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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