打开当前编辑文件所在文件夹
[*](初学,,请高手指导,,打开当前编辑文件所在文件夹,,哪里不对?)
[*]
[*]
[*]
[*](setq NHYU(getvar "DWGPREFIX"))
[*](command "shell" "start (NHYU)")
(defun c:HT_904 ()
(princ "打开当前图档所在的文件夹")
(if (= (getvar "DWGTITLED") 0)
(alert "请先保存文件")
(startapp (strcat "explorer /select, "
(getvar "dwgprefix")
(getvar "dwgname")
", /e"
)
)
)
(princ)
)
不知道哪里错误了? (setq NHYU(getvar "DWGPREFIX"))
(startapp "EXPLORER.EXE" "MHYU") gaomingabc456 发表于 2021-6-9 08:30
(setq NHYU(getvar "DWGPREFIX"))
(startapp "EXPLORER.EXE" "MHYU")
还是没行,谢谢你 ㄘ丶转裑ㄧ灬 发表于 2021-6-9 08:54
多谢,,高手指点,{:1_1:}非常感谢 加油! (defun c:Tt ()
??(startapp (strcat "explorer /e,\"" (getvar 'dwgprefix) "\""))
??(princ)
) (defun c:fl();将“fl”更改为您要使用的任何命令
(startapp "explorer"(getvar "dwgprefix"))
(PRINC)
)
页:
[1]