ImageVerifierCode 换一换
格式:DOCX , 页数:4 ,大小:35KB ,
资源ID:3192348      下载积分:20 文钱
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,省得不是一点点
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wenke99.com/d-3192348.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(求轴支反力的代码vb.docx)为本站会员(sk****8)主动上传,文客久久仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知文客久久(发送邮件至hr@wenke99.com或直接QQ联系客服),我们立即给予删除!

求轴支反力的代码vb.docx

1、Public d As StringPublic l As String Public ld As StringPublic f As StringPublic fx As StringPublic jx As StringPublic zd1 As StringPublic zd2 As StringPrivate Sub CommandButton1_Click()d = TextBox1.Textl = TextBox3.Textld = TextBox2.Textf = TextBox4.TextListBox1.AddItem d & “ “ & ld & “ “ & l & “ “

2、 & f, ListBox1.ListCountSheet1.Cells(ListBox1.ListCount, 1) = dSheet1.Cells(ListBox1.ListCount, 2) = ldSheet1.Cells(ListBox1.ListCount, 3) = lSheet1.Cells(ListBox1.ListCount, 4) = fTextBox1.Text = “TextBox2.Text = “TextBox3.Text = “TextBox4.Text = “End SubPrivate Sub CommandButton2_Click()If ListBox

3、1.ListIndex = -1 ThenMsgBox (“没有可删除的数据!“)ElseIf ListBox1.ListCount ListBox1.ListCount - 1 ThenListBox1.RemoveItem ListBox1.ListIndexSheet1.Rows(ListBox1.ListIndex + 1).DeleteElseIf ListBox1.ListIndex = ListBox1.ListCount - 1 ThenListBox1.RemoveItem ListBox1.ListIndexSheet1.Rows(ListBox1.ListIndex +

4、2).ClearEnd IfEnd SubPrivate Sub CommandButton3_Click()ListBox1.ClearSheet1.Cells.ClearTextBox1.Text = “TextBox2.Text = “TextBox3.Text = “TextBox4.Text = “End SubPrivate Sub CommandButton4_Click()TextBox4.Text = “支点“End SubPrivate Sub CommandButton5_Click()d = TextBox1.Textl = TextBox3.Textld = Text

5、Box2.Textf = TextBox4.TextListBox1.AddItem d & “ “ & ld & “ “ & l & “ “ & f, ListBox1.ListIndex + 1TextBox1.Text = “TextBox2.Text = “TextBox3.Text = “TextBox4.Text = “Sheet1.Rows(ListBox1.ListIndex + 1).InsertSheet1.Cells(ListBox1.ListIndex + 2, 1) = dSheet1.Cells(ListBox1.ListIndex + 2, 2) = ldShee

6、t1.Cells(ListBox1.ListIndex + 2, 3) = lSheet1.Cells(ListBox1.ListIndex + 2, 4) = fEnd SubPrivate Sub CommandButton6_Click() 计算每个点的坐标值并写入 sheet1Sheet1.Cells(1, 5) = Val(Sheet1.Cells(1, 3).Text) 作用点坐标Sheet1.Cells(1, 6) = Val(Sheet1.Cells(1, 2).Text) 轴肩坐标Dim i As Integeri = 2Do Until Sheet1.Cells(i, 1)

7、 = nilSheet1.Cells(i, 5) = Val(Sheet1.Cells(i - 1, 6).Text) + Val(Sheet1.Cells(i, 3).Text)Sheet1.Cells(i, 6) = Val(Sheet1.Cells(i - 1, 6).Text) + Val(Sheet1.Cells(i, 2).Text)i = i + 1LoopDim zd As StringDim i1 As Integer 找出支点位置i1 = 1Do Until Sheet1.Cells(i1, 1) = nilIf Sheet1.Cells(i1, 4) = “支点“ The

8、nzd = zd & i1 & “,“Else: zd = zdEnd Ifi1 = i1 + 1Loopzd1 = Left(zd, Val(InStr(zd, “,“) - 1) 得出支点 1 坐标zd2 = Mid(zd, Val(InStr(zd, “,“) + 1), Val(Len(zd) - Val(InStr(zd, “,“) - 1) 得出支点 2 坐标Dim i2 As Integeri2 = 1 对支点 2 求矩Do Until Sheet1.Cells(i2, 1) = nilSheet1.Cells(i2, 7) = (Val(Sheet1.Cells(i2, 5)

9、- Val(Sheet1.Cells(Val(zd2), 5) * Val(Sheet1.Cells(i2, 4)i2 = i2 + 1Loop得出支反力Dim ra As DoubleDim rb As DoubleDim Mzf As DoubleDim Fzf As DoubleDim i3 As Integeri3 = 2Mzf = Val(Sheet1.Cells(1, 7)Do Until Sheet1.Cells(i3, 1) = nilMzf = Mzf + Val(Sheet1.Cells(i3, 7)i3 = i3 + 1Loopra = Mzf / (Val(Sheet1.Cells(zd1, 5) - Val(Sheet1.Cells(zd2, 5)Dim I4 As IntegerI4 = 2Fzf = Val(Sheet1.Cells(1, 4)Fzf = Val(Sheet1.Cells(1, 4)Do Until Sheet1.Cells(i3, 1) = nilFzf = Fzf + Val(Sheet1.Cells(i3, 4)i3 = i3 + 1Looprb = Fzf - raMsgBox (rb & “ “ & ra & “ “ & Mzf & “ “ & Fzf)End Sub

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。