正交模式的设置,怪了
用程序设置绘图模式为正交模式,是不是用这句啊,<font color="#000080">ThisDrawing.ActiveViewport.OrthoOn = True,怎么就不好使呢?<br>各位给看看!<br></font> <P>看看帮助文件</P><P>Once changes have been completed, the viewport must be reset as the active viewport for the changes to appear. To reset the active viewport, simply call the ActiveViewport property again with the updated Viewport object. </P>
<P>Sub Example_<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT>()<BR> ' This example toggles the setting of <FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT>.<BR><BR> Dim viewportObj As AcadViewport<BR> <BR> ' Set the viewportObj variable to the activeviewport<BR> Set viewportObj = ThisDrawing.ActiveViewport<BR> <BR> ' Display the current setting of <FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT><BR> MsgBox "Isometric snap mode is: " & IIf(viewportObj.<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT>, "On", "Off"), , "<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT> Example"<BR><BR> ' Toggle the setting of <FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT><BR> viewportObj.<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT> = Not (viewportObj.<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT>) ' Reset the active viewport to see the change on the AutoCAD status bar ThisDrawing.ActiveViewport = viewportObj MsgBox "Isometric snap mode is now: " & IIf(viewportObj.<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT>, "On", "Off"), , "<FONT style="BACKGROUND-COLOR: #316ac5" color=#ffffff>OrthoOn</FONT> Example"<BR> <BR>End Sub</P> 我把这段程序运行了一下,还是不好用阿,正交模式还是不变啊 Probably you have misundertood the OrthoOn property. OrthoOn property specifices the status of the Isometric snap mode for the viewport. It is different from Orthomode. You should set the system variable of "ORTHOMODE" to change orthomode. 我也有同样问题啊~~~~具体怎么写?? <p>怎么操作啊????</p><p>用程序设置绘图模式为正交模式,是不是用这句啊,<font color="#000080">ThisDrawing.ActiveViewport.OrthoOn = True,怎么就不好使呢?<br/>各位给看看!<br/></font></p> <p>不行,解决不了,还望高手指点啊!</p> 直接设置系统变量ORTHOMODE的值
页:
[1]