904772207 发表于 2023-6-21 13:14:16

这是什么毛病?紧急

cad2008 命令行明明输入3结果却得到“”这是什么毛病????关键输入1 2 4 5 6 还都没问题,懵圈中。。。。。:dizzy:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA1oAAABnCAYAAAAZrjNwAAAaaElEQVR4nO3de6wcV33A8d8ZxygkDYiUEAFWoaVq8w9VgTZxTAIkqPSPqpZQaaJQKkEKOHFe2HFs5+Lk+gbXjY0T5+k0FYL+gYga0VayVCkSJTQtMUmQQigSClUfpDVBPFJKA03se5PpH7uz9+y55zUzZ16734+92rszcx5zdnZ2fnNmz6g8z3OJpdTouUSSUprOX0TUuIwyq9252HZpof0qCdWrr/WecZs3b5bPfO4L8vTxH3VdFQAlnLPhLPnoRz4oR48e7boqAACPU0ot3fSBcAP5F4HVdDEDO6CPrW9f1ytUr77We06s/YQAAACgrnKB1gANLqgCWmY7GQEAAIB6Zj7QAuBHoAUAAJAegRYw50KB1rvf9pZK+X75W8+IiMgpKyuV0gNd+vnzP5d/+c5/yE9+8nxrZb7mNWfIr/36L8vpZ5zeWpkAgOYQaAGIsrK8LLK0JKfs27c6bc8ekcVF2TsO1vZ+fHSp7imfXS/vfeubRETkkW/8W/uVBWr65lPfkd/8jbfI687+xdbK/OEPnpOnnvqObLrw7a2VCQBoTtpAq6HR43o9KF3RGZA7XjddXtf5JVp/tTTdq5Ivahn0egMYvphLB21B1p6VFdn77KLI0pLszXORLaPp+f0i6z8rcsstt8jNN9/MpYkYpBdfPCGvPetM+fH//Ly1Ml971pny4ovf5jMDADMiS5YTB8OoqAiy8sV8EmBNBV7FNsXBRyOUUt6Hac/KiqxcvjzpvSrsf/Oflcr/poXtUdNvWtg+edimh+rPg0fVR2aZJkpElGivx/Ns/5SSURL9eZxGW0bGD1t5tgcAYBhauXTQ9r2QWzosQvOU59jb9To2f1/62sz1zz3zyiwTk3/MfHOZKukTMXu20LzQgdvKnj0iInLKvn2jXiwjwJJnF0VEZOHkyanJmzZtCuZvz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1Tfugkfzjr6cvFzAPv0Hz9MrM6B+16Oyq1+jpZ++b52swLEe0be9Warf6+PGzpy+j8/bONEuR6bcs+lH4y3fP+xcwHAABAq2r3aIXE9GjUwTElAAAAgL5pPNAK9WjUVbdHC356R4k+zcTPgwAAAIBVjQdaTSOgap75eyrb1Wm8DwAAAMCq+FEHAQAAAABR4m9Y7Lj+L+bSvSSXDjZ4/aFtEITQIAmp7sPkGgyi7ojea6pQ8V5MMSMCxoyMGDsyoS8Ply7fv1J899gKpuVeWgAAAENSO9BqTdflD91ADtR7Uo3+Gcj7BwAAgJH4Swe7vilq1+UPWcxBOO3bXwRZAAAAgxPfowW0gJgBAAAAs2Dwow5ithBgAQAAYBYw6iAAAAAAJEagBQAAAACJEWgBAAAAQGLlAi2lOh+VrgdVAAAAAACv/wfilfLBAm6uBwAAAABJRU5ErkJggg==

e2002 发表于 2023-6-23 19:50:52

本帖最后由 e2002 于 2023-6-23 20:14 编辑

904772207 发表于 2023-6-21 17:13
图没有发上来
就是这个getkword函数输入3 得到的就是""
总结:
      

提示字符串与其中关键字的格式:

1. 对于中文关键字:括号内的大写字符优先级高于没有括号的大写字符;
2. 括号可以在前,也可以在后,还可以在中间。例如 "(A)增加" "减少(S)" "测试(D)模式"...
4. 这个括号不能是中文全角的那个"中文括号字符";
5. 对于对于英文关键字,不需要括号,只需要提供大写字符即可,可以一个大写,也可以多个大写,这些大写的部分,要与 initget 参数中提供的完全一致。例如:"Setting" "moDe" "Any" "doublE" "COpy" "deleTe"...

6. 每个关键字之间使用 "/" 字符作为分隔;
7. 完整的全部关键字的字符串,使用方括号包住;
8. 缺省值通常在尾部冒号之后, 空一格并使用尖括号包住(通常会再有一个末端空格,这样用户的输入内容能很容易看出来)。

准确的写法:

(initget "1 2 3 4 5 6")
(setq var (getkword "\n选择 [(1)分奇偶/(2)定值/(3)定距/(4)取整数/(5)GCD换层/(6)真彩色]: <1> "))
用户的响应,可以使用:键盘输入/使用右键菜单输入/使用动态输入的菜单输入。这三种方式的结果并不完全相同,特别是使用动态输入的菜单输入时,目前还存在一些bug,建议大家使用前面两种方式。


904772207 发表于 2023-6-26 19:59:15

e2002 发表于 2023-6-23 19:50
总结:
      



直接命令行所有都正常   感觉是从菜单栏进来3数字这个选项在菜单cui中被什么占用了选项中其他数字1 2 4 5 6都可以用就单单3不能用

飞雪神光 发表于 2023-6-21 13:29:39

看命令是怎么定义的或者命令被重定义了

904772207 发表于 2023-6-21 17:13:03

图没有发上来
就是这个getkword函数输入3 得到的就是""

904772207 发表于 2023-6-21 17:32:10

同样的代码 在cad2006 就没有问题 输入什么 得到什么

904772207 发表于 2023-6-21 17:33:34

哪个高手知道怎么回事啊:Q- 求指教====

nzl1116 发表于 2023-6-21 20:39:18

你这2006和2008两个版本是同一台电脑吗?我这么问,是怀疑你键盘坏了

hhh454 发表于 2023-6-22 10:09:51

这种输入选择建议改成DCL的,这样直观可视化

飞雪神光 发表于 2023-6-22 19:51:42

904772207 发表于 2023-6-21 17:13
图没有发上来
就是这个getkword函数输入3 得到的就是""

你这段代码 看不出问题解决了没 要是没解决发源码看看

904772207 发表于 2023-6-26 19:54:01

e2002 发表于 2023-6-23 19:50
总结:
      



好像也不是这个问题   直接从菜单栏选择命令函数不行   命令行直接输入函数运行就可以
页: [1] 2
查看完整版本: 这是什么毛病?紧急