没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Sub DM()
Dim i, j, m, n As Integer
For i = 1 To 1236
'左断面数据cass格式转苏交科断面格式
If Cells(i, 1) = "BEGIN" Then j = i
If Cells(i + 1, 1) = "0" Then m = i - j
For n = 1 To m - 1
If Cells(i + 1, 1) = "0" Then Cells(i, 2 * n + 1) = Abs(Cells(i - n, 1)): Cells(i, 2 * n + 2) = Abs(Cells(i - n, 2))
Next
Next
'右断面数据cass格式转苏交科断面格式
For i = 1 To 1236
If Cells(i, 1) = "0" Then j = i
If Cells(i + 1, 1) = "BEGIN" Then m = i - j
For n = 1 To m
If Cells(i + 1, 1) = "BEGIN" Then Cells(j, 2 * n + 1) = Cells(j + n, 1): Cells(j, 2 * n + 2) = Cells(j + n, 2)
Next
Next
'里程
For k = 1 To 1236
If Cells(k, 1).Value = "BEGIN" Then Cells(k, 1) = Cells(k, 2): Cells(k, 2) = " "
Next
End Sub
Dim i, j, m, n As Integer
For i = 1 To 1236
'左断面数据cass格式转苏交科断面格式
If Cells(i, 1) = "BEGIN" Then j = i
If Cells(i + 1, 1) = "0" Then m = i - j
For n = 1 To m - 1
If Cells(i + 1, 1) = "0" Then Cells(i, 2 * n + 1) = Abs(Cells(i - n, 1)): Cells(i, 2 * n + 2) = Abs(Cells(i - n, 2))
Next
Next
'右断面数据cass格式转苏交科断面格式
For i = 1 To 1236
If Cells(i, 1) = "0" Then j = i
If Cells(i + 1, 1) = "BEGIN" Then m = i - j
For n = 1 To m
If Cells(i + 1, 1) = "BEGIN" Then Cells(j, 2 * n + 1) = Cells(j + n, 1): Cells(j, 2 * n + 2) = Cells(j + n, 2)
Next
Next
'里程
For k = 1 To 1236
If Cells(k, 1).Value = "BEGIN" Then Cells(k, 1) = Cells(k, 2): Cells(k, 2) = " "
Next
End Sub
资源评论
花舞月咏潭
- 粉丝: 118
- 资源: 30
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功