- UID
- 401945
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2006-3-16
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
Sub duoxian_yangtiao()
Dim returnObj As Acad3DPolyline
Dim basePnt As Double
Dim retCoord As Variant
Dim yangtiao As AcadSpline
Dim spoint As Variant
Dim epoint As Variant
Dim aaa As Integer
On Error Resume Next
ThisDrawing.Utility.GetEntity returnObj, basePnt, "选三维多段线"
If Err <> 0 Then
Err.Clear
MsgBox "选择错误", , "多段线转样条曲线 示例"
Exit Sub
Else
retCoord = returnObj.Coordinates
aaa = UBound(retCoord) / 3 - 1
spoint = returnObj.Coordinate(0)
epoint = returnObj.Coordinate(aaa)
Set yangtiao = ThisDrawing.ModelSpace.AddSpline(retCoord, spoint, epoint)
End If
End Sub |
|