大三機(jī)械設(shè)計(jì)方案課設(shè)計(jì)方案vb_第1頁(yè)
大三機(jī)械設(shè)計(jì)方案課設(shè)計(jì)方案vb_第2頁(yè)
大三機(jī)械設(shè)計(jì)方案課設(shè)計(jì)方案vb_第3頁(yè)
大三機(jī)械設(shè)計(jì)方案課設(shè)計(jì)方案vb_第4頁(yè)
已閱讀5頁(yè),還剩2頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Private Sub Command1_Click(Index As Integer)Dim dblWP As Double, dblHP As Double, i As IntegerdblWP = Abs(Picture1(0).ScaleWidth)dblHP = Abs(Picture1(0).ScaleHeight)For i = 0 To 5Picture1(i).ClsPicture1(i).ScaleMode = 1Picture1(i).DrawStyle = 0Picture1(i).DrawWidth = 1.5Picture1(i).Scale (-120, dblH

2、P / 2)-(dblWP - 120, -dblHP / 2)Picture1(i).Line (0, 0)-(dblWP - 160, 0)Picture1(i).Line (dblWP - 160, 0)-Step(-120, 120)Picture1(i).Line (dblWP - 160, 0)-Step(-120, -120)Picture1(i).CurrentX = dblWP - 700Picture1(i).CurrentY = 250Picture1(i).Print "f_AB"Picture1(i).CurrentX = -120Picture1

3、(i).CurrentY = -10Picture1(i).Print "0"Picture1(i).Line (0, dblHP / 2 - 60)-(0, -(dblHP / 2 - 60)Picture1(i).Line (0, dblHP / 2 - 60)-Step(-120, -120)Picture1(i).Line (0, dblHP / 2 - 60)-Step(120, -120)Picture1(i).CurrentX = 160Picture1(i).CurrentY = dblHP / 2 - 60If i <> 0 Then Pict

4、ure1(i).FontName = "ms sans serif"Select Case iCase 0Picture1(i).Print "f_CD"Case 1Picture1(i).Print "w_CD"Case 2Picture1(i).Print "e_CD"Case 3Picture1(i).Print "s_E"Case 4Picture1(i).Print "v_E"Case 5Picture1(i).Print "a_E"End Se

5、lectNext iDim dblMax_f_CD As Double, dblMax_w_CD As Double, dblMax_e_CD As Double Dim dblMax_s_E As Double, dblMax_v_E As Double, dblMax_a_E As DoubleDim dblF_CD, dblW_CD, dblE_CD As DoubleDim dblS_E, dblV_E, dblA_E As DoubleDim dblF_AB, dblF_DE As DoubleDim dblAB As Double, dblCD As Double, dblDE A

6、s Double, dblAC As Double, dblH As Double, dblSE As Double, dbldf_CD As DoubleDim PI As DoublePI = 3.1415926For i = 0 To 360dblF_AB = i * PI / 180dblF_CD = Atn(dblAC + dblAB * Sin(dblF_AB) / (dblAB * Cos(dblF_AB)If dblF_CD < 0 Then dblF_CD = dblF_CD + PIdblW_CD = dblAB * (2 * PI * dbln1 / 60) * C

7、os(dblF_AB - dblF_CD) / Sqr(Abs(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblE_CD = (-dblAB * (2 * PI * dbln1 / 60) * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_CD) + 2 * dblAB * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_CD) * dblW_CD) / Sqr(Abs(dblAB * dblAB + dblAC * dblAC +

8、 2 * dblAC * dblAB * Sin(dblF_AB)dblF_DE = Atn(dblH - dblCD * Sin(dblF_CD) / dblDE) / Sqr(Abs(1 - (dblH - dblCD * Sin(dblF_CD) * (dblH - dblCD * Sin(dblF_CD) / (dblDE * dblDE)dblw_DE = (-(dblCD * dblW_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE)dble_DE = (dblDE * dblw_DE * dblw_DE * Sin(dblF_DE) + dblC

9、D * dblW_CD * dblW_CD* Sin(dblF_CD) - dblCD * dblE_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE) dblS2 = Sqr(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblS_E = dblCD * Cos(dblF_CD) + dblDE * Cos(dblF_DE)dblV_E = (-dblCD / 1000) * dblW_CD * Sin(dblF_CD) - (dblDE / 1000) * (-(dblCD /

10、 1000) * dblW_CD * Cos(dblF_CD) / (dblDE / 1000) * Cos(dblF_DE) * (dblH / 1000) - (dblCD / 1000) * Sin(dblF_CD) / (dblDE / 1000)dblA_E = (-dblCD / 1000) * dblE_CD * Sin(dblF_CD) - (dblCD / 1000) * dblW_CD * dblW_CD * Cos(dblF_CD) - (dblDE / 1000) * dble_DE * Sin(dblF_DE) - (dblDE / 1000) * dblw_DE *

11、 dblw_DE * Cos(dblF_DE)If Abs(dblF_CD) > dblMax_f_CD Then dblMax_f_CD = Abs(dblF_CD)If Abs(dblW_CD) > dblMax_w_CD Then dblMax_w_CD = Abs(dblW_CD)If Abs(dblE_CD) > dblMax_f_CD Then dblMax_e_CD = Abs(dblE_CD)If Abs(dblS_E) > dblMax_s_E Then dblMax_s_E = Abs(dblS_E)If Abs(dblV_E) > dblMa

12、x_v_E Then dblMax_v_E = Abs(dblV_E)If Abs(dblA_E) > dblMax_a_E Then dblMax_a_E = Abs(dblA_E)Next iDim dblSx As Double, dblSy As DoubledblSx = (dblWP - 240) / 360For i = 0 To 360dblF_AB = i * PI / 180dblF_CD = Atn(dblAC + dblAB * Sin(dblF_AB) / (dblAB * Cos(dblF_AB)If dblF_CD < 0 Then dblF_CD =

13、 dblF_CD + PIdblW_CD = dblAB * (2 * PI * dbln1 / 60) * Cos(dblF_AB - dblF_CD) / Sqr(Abs(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblE_CD = (-dblAB * (2 * PI * dbln1 / 60) * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_CD) + 2 * dblAB * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_

14、CD) * dblW_CD) / Sqr(Abs(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblF_DE = Atn(dblH - dblCD * Sin(dblF_CD) / dblDE) / Sqr(Abs(1 - (dblH - dblCD * Sin(dblF_CD) * (dblH - dblCD * Sin(dblF_CD) / (dblDE * dblDE)dblw_DE = (-(dblCD * dblW_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE)db

15、le_DE = (dblDE * dblw_DE * dblw_DE * Sin(dblF_DE) + dblCD * dblW_CD * dblW_CD* Sin(dblF_CD) - dblCD * dblE_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE) dblS2 = Sqr(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblS_E = dblCD * Cos(dblF_CD) + dblDE * Cos(dblF_DE)dblV_E = (-dblCD / 1000

16、) * dblW_CD * Sin(dblF_CD) - (dblDE / 1000) * (-(dblCD / 1000) * dblW_CD * Cos(dblF_CD) / (dblDE / 1000) * Cos(dblF_DE) * (dblH / 1000) - (dblCD / 1000) * Sin(dblF_CD) / (dblDE / 1000)dblA_E = (-dblCD / 1000) * dblE_CD * Sin(dblF_CD) - (dblCD / 1000) * dblW_CD * dblW_CD * Cos(dblF_CD) - (dblDE / 100

17、0) * dble_DE * Sin(dblF_DE) - (dblDE / 1000) * dblw_DE * dblw_DE * Cos(dblF_DE)dblSy = (dblHP / 2 - 240) / dblMax_f_CDPicture1(0).PSet (i * dblSx, dblF_CD * dblSy)dblSy = (dblHP / 2 - 240) / dblMax_w_CDPicture1(1).PSet (i * dblSx, dblW_CD * dblSy)dblSy = (dblHP / 2 - 240) / dblMax_e_CDPicture1(2).PS

18、et (i * dblSx, dblE_CD * dblSy * 0.25)dblSy = (dblHP / 2 - 240) / dblMax_s_EPicture1(3).PSet (i * dblSx, dblS_E * dblSy)dblSy = (dblHP / 2 - 240) / dblMax_v_EPicture1(4).PSet (i * dblSx, dblV_E * dblSy)dblSy = (dblHP / 2 - 240) / dblMax_a_EPicture1(5).PSet (i * dblSx, dblA_E * dblSy)Next iEnd SubPri

19、vate Sub Command5_Click()Dim i As DoubleDim dblAB As Double, dblCD As Double, dblDE As Double, dblAC As Double, dblH As Double, dblF_AB As Double, dbldf_CD As DoubleDim dblF_CD As Double, dblW_CD As Double, dblE_CD As Double Dim dblS_E As Double, dblV_E As Double, dblA_E As Double Dim dblS2 As Doubl

20、eDim dblF_DE As Double, dblw_DE As Double, dble_DE As Double Dim PI As DoublePI = 3.1415926List1.ClearList1.AddItem ("f_AB" & Chr(9) & "f_CD" & Chr(9) & "w_CD" & Chr(9) & "e_CD" & Chr(9)& "s_E" & Chr(9) & "

21、;v_E" & Chr(9) & "a_E")List1.AddItem("")For i = 0 To 360 Step 30dblF_AB = i * PI / 180dblF_CD = Atn(dblAC + dblAB * Sin(dblF_AB) / (dblAB * Cos(dblF_AB)If dblF_CD < 0 Then dblF_CD = dblF_CD + PIdblW_CD = dblAB * (2 * PI * dbln1 / 60) * Cos(dblF_AB - dblF_CD) / Sqr

22、(Abs(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblE_CD = (-dblAB * (2 * PI * dbln1 / 60) * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_CD) + 2* dblAB * (2 * PI * dbln1 / 60) * Sin(dblF_AB - dblF_CD) * dblW_CD) / Sqr(Abs(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dbl

23、F_AB)dblF_DE = Atn(dblH - dblCD * Sin(dblF_CD) / dblDE) / Sqr(Abs(1 - (dblH - dblCD * Sin(dblF_CD) * (dblH - dblCD * Sin(dblF_CD) / (dblDE * dblDE)dblw_DE = (-(dblCD * dblW_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE)dble_DE = (dblDE * dblw_DE * dblw_DE * Sin(dblF_DE) + dblCD * dblW_CD * dblW_CD * Sin(dblF_CD) - dblCD * dblE_CD * Cos(dblF_CD) / (dblDE * Cos(dblF_DE)dblS2 = Sqr(dblAB * dblAB + dblAC * dblAC + 2 * dblAC * dblAB * Sin(dblF_AB)dblS_E = dblCD * Cos(dblF_CD) + dblDE * Cos(dblF_DE)dblV_E = (-dblCD / 1000) * dblW_CD * Sin(dblF

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論