明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2279|回复: 1

在CAD模型空间里画一个圆

[复制链接]
发表于 2009-11-10 06:34 | 显示全部楼层 |阅读模式
本帖最后由 作者 于 2009-11-11 11:51:43 编辑

Sub Example_AddCircle()
    ' 这是在模型空间画一个圆的例子.
  
    Dim circleObj As AcadCircle
    Dim centerPoint(0 To 2) As Double
    Dim radius As Double
   
    ' 定义圆
    centerPoint(0) = 0# 'X坐标
    centerPoint(1) = 0# 'Y坐标
    centerPoint(2) = 0# 'Z坐标
    radius = 5# '半径
   
    ' 在模型空间里画圆
    Set circleObj = ThisDrawing.ModelSpace.AddCircle(centerPoint, radius)
    ZoomAll
   
End Sub

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2011-4-2 13:09 | 显示全部楼层
这是什么意思?没看懂呢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-2 05:46 , Processed in 2.839531 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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