nicolas 发表于 2022-7-6 08:17:38

在开口o处恢复Defpoint

你好
 
有没有办法创建一个打开Defpoints并在图形开口处执行命令(这里的另一个lisp称为pd.lsp)的lisp?
 
我认为它必须在后台工作,一旦打开图形,它就会自动执行。
 
提前感谢,
 
当做
 
尼古拉斯

MSasu 发表于 2022-7-6 08:29:02

请查看这篇关于自动加载AutoLISP例程的文章。
 
当做
米尔恰

MSasu 发表于 2022-7-6 08:42:11

虽然我不建议使用系统生成的层,但这段简单的代码可能会解决您的问题:
(command "_LAYER" "_ON" "Defpoints" "_THAW" "Defpoints" "")
当做
米尔恰

nicolas 发表于 2022-7-6 08:53:39

你好
 
谢谢你的信息。
 
我想应用一个布局,解冻所有空间中的所有层,更具体地说是defpoints层。但是,在布局中,“在当前视口中不解冻”,无法使用命令恢复。
 
当做
 
尼古拉斯。

nicolas 发表于 2022-7-6 09:02:08

它正在工作
 

(defun c:layrestore()
(command "_Layon")
(command "_Laythw")
(command "_layer" "_ON" "Defpoints " "_thaw" "Defpoints" "")
(command "_vplayer" "_T" "Defpoints" "_A" "")
(princ))

MSasu 发表于 2022-7-6 09:07:49

请编辑您的帖子,将代码标签添加到您的代码摘录中。非常感谢。
 
当做
米尔恰

nicolas 发表于 2022-7-6 09:22:42

一切都结束了。谢谢
页: [1]
查看完整版本: 在开口o处恢复Defpoint