我想要一个代码,可以将计算结果输出到多行文字中。看起来并不难,但我似乎完成不了。这是我到目前为止得到的。
-
- (defun c:davitcal (DAV)
- (setq Z (getreal "Enter pipe section modulus:" ))
- (setq W (getreal "Enter est. dead weight (FLG. + parts):" ))
- (setq L (getreal "Enter length of moment arm:" ))
- (setq S (getreal "Enter stress value for davit arm:" ))
- (setq a (getreal "Enter mtext corner:" ))
- (command "mtext" 0 a Z W L S)
它会吐出来,但不会关闭多行文字,我该怎么解决?
此外,如果可能的话,我希望多行文字以其最终形式阅读
Z=(无论setq Z数是多少)
W=(无论setq W数是多少)
L=(无论setq L数是多少)
S=(无论setq S数是多少)即:
Z=12.22
W=3800
L=45.3869
S=17100
到目前为止,它只是吐出数字
如果我屠宰了什么,我很抱歉。这对我来说是全新的。谢谢你的时间和努力。非常感谢您的回复。 |