明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1974|回复: 2

如何创建二维坐标系啊?

[复制链接]
发表于 2004-7-13 16:26:00 | 显示全部楼层 |阅读模式
如何创建二维坐标系啊? Dim ucsObj As AcadUCS
Dim origin As Variant
Dim xAxisPoint(0 To 2) As Double
Dim yAxisPoint(0 To 2) As Double
origin = ThisDrawing.Utility.GetPoint(, "指定标注原点:") xAxisPoint(0) = origin(0): xAxisPoint(1) = 0: xAxisPoint(2) = 0
yAxisPoint(0) = 0: yAxisPoint(1) = origin(1): yAxisPoint(2) = 0
Set ucsObj = ThisDrawing.UserCoordinateSystems.Add(origin, xAxisPoint, yAxisPoint, "UCS1")
ThisDrawing.ActiveUCS = ucsObj 就象在CAD里用UCS命令一样效果。以上程序建立出来的X坐标为什么是反的啊?
发表于 2004-7-13 20:34:00 | 显示全部楼层
xAxisPoint(0) = origin(0)+1: xAxisPoint(1) = origin(1): xAxisPoint(2) = 0
yAxisPoint(0) = origin(0): yAxisPoint(1) = origin(1)+1: yAxisPoint(2) = 0
发表于 2004-7-19 08:58:00 | 显示全部楼层
可以了,非常感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-28 02:32 , Processed in 0.175867 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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