我有点头晕。对话框功能现在工作了,是的,我将把它改为“Cond”。但是,此功能不起作用。我想设置几个用于输出配置的变量:
- ;---------------------------------------------------
- ;------ Set Variables for Output configuration -----
- ;---------------------------------------------------
- (defun vrebles (device1 device2 device3 device4 device5 device# Plot1 Plot2 Plot3 Plot4 Plot5 Plot# numThree / numOne numTwo)
- ; Set the output device variable and numOne based on selection:
-
- (cond
- ((= device# 1) (setq numOne 1))
- ((= device# 2) (setq numOne 10))
- ((= device# 3) (setq numOne 100))
- ((= device# 4) (setq numOne 1000))
- ((= device# 5) (setq numOne 10000))
- )
- ; Set the plot size variable and numTwo based on selection:
- (cond
- ((= Plot# 1) (setq numTwo 1))
- ((= Plot# 2) (setq numTwo 2))
- ((= Plot# 3) (setq numTwo 3))
- ((= Plot# 4) (setq numTwo 4))
- ((= Plot# 5) (setq numTwo 5))
- ))
再次感谢李的快速回复。任何额外的帮助都将不胜感激。 |