chulse 发表于 2022-7-6 10:59:45

GetOrient的默认值?

可以这样设置GETORIENT的默认值吗?
 

(setq rot1 (getorient "Specify angle..." ))

 
谢谢

Freerefill 发表于 2022-7-6 11:45:07

不确定这是否是你想要的,但类似的东西可能会有所帮助:
 

(setq rot1 (if (setq tmp (getorient "Specify angle...")) tmp 0))

 
这将获得方向,如果存在,将为其设置变量rot1。如果没有(比如说用户通过右键单击取消了它,或者你做了什么),那么它会将rot1改为0。

chulse 发表于 2022-7-6 12:20:07

太好了,谢谢-我想这会满足我的需要。
页: [1]
查看完整版本: GetOrient的默认值?