lumbda 发表于 2007-6-29 13:56:00

菜鸟求助,关于矩形命令的设置问题

<p>开始用矩形命令绘图的时候,在“指定第一个角点或....”里面如果设置了矩形的圆角、宽度之类的话,再次点击矩形命令的话,会自动出现“当前矩形模式...”,也就是在上次的设置下进行绘图,怎么恢复到默认状态啊?请高手指教!!</p>

phoenixdjq 发表于 2007-6-29 14:18:00

<p></p><p><table cellspacing="0" cellpadding="0" width="303" border="0" style="WIDTH: 228pt; BORDER-COLLAPSE: collapse;"><colgroup><col width="47" style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1504;"></col><col width="150" style="WIDTH: 113pt; mso-width-source: userset; mso-width-alt: 4800;"></col><col width="38" style="WIDTH: 29pt; mso-width-source: userset; mso-width-alt: 1216;"></col><col width="31" style="WIDTH: 23pt; mso-width-source: userset; mso-width-alt: 992;"></col><col width="37" style="WIDTH: 28pt; mso-width-source: userset; mso-width-alt: 1184;"></col></colgroup><tbody><tr height="19" style="HEIGHT: 14.25pt;"><td width="235" colspan="3" height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 177pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan;">我记得有一个系统变量可以控制</td><td class="xl29" width="31" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 23pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td width="37" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 28pt; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td class="xl29" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td colspan="5" height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan;">但是这样的话,你就要用程序恢复原值了</td></tr><tr height="20" style="HEIGHT: 15pt;"><td height="20" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 15pt; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td class="xl29" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td colspan="4" height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan;">或者你再用命令重新设置倒角的数值</td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td class="xl29" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr><tr height="19" style="HEIGHT: 14.25pt;"><td colspan="2" height="19" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan;">别的我就不知道了</td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td class="xl29" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td><td style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent;"></td></tr></tbody></table></p>

lumbda 发表于 2007-6-29 14:27:00

如果用命令重新设置倒角、宽度之类的显得好麻烦啊,那个恢复原值的系统变量是什么呢?

xhq1954425 发表于 2007-6-29 15:16:00

<p>要弄清楚那个复原值的系统变量估计要比重新设置还要麻烦。比方说用 重置 命令,但是这个命令还真不敢随便试,可能会造成更多的麻烦。</p>

phoenixdjq 发表于 2007-6-29 21:46:00

本帖最后由 作者 于 2007-6-29 22:34:02 编辑 <br /><br /> <p>其实也不是很麻烦呀</p><p>你可以编个小程序呀</p><p>一个命令就可以了(因为我们平时用的都是0)</p><p>(defun c:r0()</p><p>(setq old (getvar "osmode")</p><p>(setvar "osmode" 0)<br/>(command "rectang" "f" <font color="#ff0000">0</font> (list 0 0) (list 1 1)) <br/>(setq a (entlast))<br/>(command "erase" a "")</p><p>(setvar "osmode" old)<br/>(princ)<br/>)</p><p>如果你不想返回0半径,可以将红色处的数值改成你要的就可以了</p>

zl-sir 发表于 2007-6-29 22:16:00

rectang-f-输入0
页: [1]
查看完整版本: 菜鸟求助,关于矩形命令的设置问题