| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1510 人关注过本帖
标题:Vb6.0二次开发CAD,画弧怎么和直线连接起来?
只看楼主 加入收藏
ojl16415009
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2020-5-12
收藏
 问题点数:0 回复次数:0 
Vb6.0二次开发CAD,画弧怎么和直线连接起来?
Private Sub Command1_Click()
   Dim PN1(0 To 2) As Double
   Dim PN2(0 To 2) As Double
   Dim PN3(0 To 2) As Double
   Dim PN4(0 To 2) As Double
   Dim li1 As AcadLine
   Dim ArcObj As AcadArc
   Dim startPoint(0 To 2) As Double
   PN1(0) = 10: PN1(1) = 10: PN1(2) = 0 '起点座标
   PN2(0) = 30: PN2(1) = 10: PN2(2) = 0 '终点座标
   PN3(0) = 10: PN3(1) = 15: PN3(2) = 0 '起点座标
   PN4(0) = 30: PN4(1) = 15: PN4(2) = 0
   '绘制直线
   Set li1 = acadapp.ActiveDocument.ModelSpace.AddLine(PN1, PN2)
   Set li2 = acadapp.ActiveDocument.ModelSpace.AddLine(PN3, PN4)
   Set ArcObj = acadapp.ActiveDocument.ModelSpace.AddArc(startPoint, 20, 15, 30)
   ZoomAll
End Sub
搜索更多相关主题的帖子: 直线 Set Double Vb6.0 Dim 
2020-05-12 18:47
快速回复:Vb6.0二次开发CAD,画弧怎么和直线连接起来?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021045 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved