明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1970|回复: 7

正交模式的设置,怪了

[复制链接]
发表于 2005-10-17 20:10:00 | 显示全部楼层 |阅读模式
用程序设置绘图模式为正交模式,是不是用这句啊,ThisDrawing.ActiveViewport.OrthoOn = True,怎么就不好使呢?
各位给看看!
发表于 2005-10-17 22:57:00 | 显示全部楼层

看看帮助文件

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.

Sub Example_OrthoOn()
    ' This example toggles the setting of OrthoOn.

    Dim viewportObj As AcadViewport
   
    ' Set the viewportObj variable to the activeviewport
    Set viewportObj = ThisDrawing.ActiveViewport
   
    ' Display the current setting of OrthoOn
    MsgBox "Isometric snap mode is: " & IIf(viewportObj.OrthoOn, "On", "Off"), , "OrthoOn Example"

    ' Toggle the setting of OrthoOn
    viewportObj.OrthoOn = Not (viewportObj.OrthoOn) ' Reset the active viewport to see the change on the AutoCAD status bar ThisDrawing.ActiveViewport = viewportObj MsgBox "Isometric snap mode is now: " & IIf(viewportObj.OrthoOn, "On", "Off"), , "OrthoOn Example"
   
End Sub

 楼主| 发表于 2005-10-18 09:49:00 | 显示全部楼层
我把这段程序运行了一下,还是不好用阿,正交模式还是不变啊
发表于 2005-10-18 10:05:00 | 显示全部楼层
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.
发表于 2007-1-18 23:37:00 | 显示全部楼层
我也有同样问题啊~~~~具体怎么写??
发表于 2007-2-10 19:42:00 | 显示全部楼层

怎么操作啊????

用程序设置绘图模式为正交模式,是不是用这句啊,ThisDrawing.ActiveViewport.OrthoOn = True,怎么就不好使呢?
各位给看看!

发表于 2007-4-2 15:14:00 | 显示全部楼层

不行,解决不了,还望高手指点啊!

发表于 2007-4-2 20:53:00 | 显示全部楼层
直接设置系统变量ORTHOMODE的值
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-2 08:35 , Processed in 0.194085 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表