pBe 发表于 2022-7-5 18:03:23

 
我无意误导你,但我想你指的是这个。。
 
 
c: notdb最深块的名称
 
 
 
我还是不明白,我给了你们一个代码作为起点,为什么,我们在这里很难理解你们需要什么。
 
根据您的推理,为什么不选择另一个嵌套块呢?就像其他论坛成员建议的那样,-refedit命令就足够了。
 
命令:-REFEDIT
选择参考:
选择嵌套级别[确定/下一步]:

ctrlaltdel 发表于 2022-7-5 18:07:29

pBe先生,
 
我修改了代码,但当LISP加载错误出现时
 
但单击实体后会遇到此错误
如何使其正确工作?

Lee Mac 发表于 2022-7-5 18:08:46

ctrlaltdel 发表于 2022-7-5 18:13:15

 
Thanks Lee Mac. Close but I need to be in the "Block in-place"/refedit edit mode cause I need to see All the other block as a reference for me.
 
I hope you know what I am getting at & have a solution?
 
Crossing Fingers.

ctrlaltdel 发表于 2022-7-5 18:20:17

I amended the code in this manner

    (defun c:myblockedit ( / lst )       (if (setq lst (cadddr (nentsel)))         (command "_.refedit" (cdr (assoc 2 (entget (cond ((cadr lst)) ((car lst)))))))       )       (princ)   )But encounter this error after clicking the entity
How to make it work correctly?
页: 1 [2]
查看完整版本: 快速访问网元