-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParcatipi.vb
340 lines (270 loc) · 12.2 KB
/
Parcatipi.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel
Imports Microsoft.Office
Public Class Parcatipi
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
PinBracket.Show()
Me.Close()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Cale.Show()
Me.Close()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Drageoir.Show()
Me.Close()
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Serrage.Show()
Me.Close()
End Sub
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
RenaultStandardi.Show()
Me.Close()
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Poteau.Show()
Me.Close()
End Sub
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
StoolHightener.Show()
Me.Close()
End Sub
Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
Dim proc As System.Diagnostics.Process
For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
proc.Kill()
Next
Dim xlApp As New Excel.Application
xlApp.Visible = True
Try
xlApp.Workbooks.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_01000_PNEUMATIQUE_AUTOMATION_EQUIPMENTS\Valf Adası Seçme Macrosu.xlsx")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
xlApp.Visible = False
End Try
If System.IO.File.Exists("xlApp") Then
Me.Close()
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlApp)
xlApp = Nothing
GC.Collect()
GC.WaitForPendingFinalizers()
End Sub
Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E11_00500_BASE_marbre\CHECKING_BALL & ACCESSORIES\CHECKING_BALL_CAP_SET_HIGHTENER\3D\CHECKING_BALL_CAP_SET_HIGHTENER_01.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E11_00700_ADJUSTMENT PILLAR_pied de reglage\ADJUST_PILLAR\3D\0701_ADJUST_PILLAR.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button11_Click(sender As Object, e As EventArgs)
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_01100_CONNECTION_EQUIPMENT\01_V_Bute_groupe\3D\V_Bute_groupe.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
Retaquage.Show()
Me.Close()
End Sub
Private Sub Parcatipi_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Button13_Click(sender As Object, e As EventArgs)
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00100_RETAQUAGE_EQUIPMENT\E140000100=RTQ_ROUE\3D\RTQ_ROUE_01.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button13_Click_1(sender As Object, e As EventArgs) Handles Button13.Click
Pilote.Show()
Me.Close()
End Sub
Private Sub Button14_Click(sender As Object, e As EventArgs) Handles Button14.Click
Detector.Show()
Me.Close()
End Sub
Private Sub Button25_Click(sender As Object, e As EventArgs) Handles Button25.Click
Two_Face_Stool_Poteau.Show()
Me.Close()
End Sub
Private Sub Button24_Click(sender As Object, e As EventArgs) Handles Button24.Click
AppuiTouche.Show()
Me.Close()
End Sub
Private Sub Button23_Click(sender As Object, e As EventArgs) Handles Button23.Click
Equerre.Show()
Me.Close()
End Sub
Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
SopapEquipment.Show()
Me.Close()
End Sub
Private Sub Button18_Click(sender As Object, e As EventArgs) Handles Button18.Click
Table_Depose_Equipment.Show()
Me.Close()
End Sub
Private Sub Button15_Click(sender As Object, e As EventArgs) Handles Button15.Click
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_04200_MINOMI_PES_PS_EQUIPMENT\PES-R_Middle\3D\PES_Middle_Carcasse_01.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button31_Click(sender As Object, e As EventArgs) Handles Button31.Click
Pneumatique.Show()
Me.Close()
End Sub
Private Sub Button29_Click(sender As Object, e As EventArgs) Handles Button29.Click
Zone.Show()
Me.Hide()
End Sub
Private Sub Button26_Click(sender As Object, e As EventArgs) Handles Button26.Click
Dim CATIA As Object
Dim Mydocument
Dim PartFactory
Dim iPartDoc
'Get CATIA Or Launch it if necessary.
On Error Resume Next
CATIA = GetObject(, "CATIA.Application")
CATIA = CreateObject("CATIA.Application")
CATIA.Visible = True
iPartDoc = CATIA.Documents.Open("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_10000_SAS_AGV\01_SAS_Conception_de_reference\3D\General_SAS_AGV_Chariot.CATProduct")
On Error GoTo 0
' Add a new Part
'Mydocument = CATIA.Documents.Add("Part")
'PartFactory = Mydocument.Part.ShapeFactory ' Retrieve the Part Factory.
If System.IO.File.Exists("iPartDoc") Then
Me.Close()
End If
End Sub
Private Sub Button28_Click(sender As Object, e As EventArgs)
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_10300_GOUJON SUPPORT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button27_Click(sender As Object, e As EventArgs) Handles Button27.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00200_ACCROCHAGE_EQUIPMENT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button20_Click(sender As Object, e As EventArgs) Handles Button20.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00300_PLATFORM_EQUIPMENT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button21_Click(sender As Object, e As EventArgs) Handles Button21.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_10400_REHAUSSE")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button16_Click(sender As Object, e As EventArgs) Handles Button16.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00700_GABARIT_EQUIPMENT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button17_Click(sender As Object, e As EventArgs) Handles Button17.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00600_ROBOT_INTERFACE")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button22_Click(sender As Object, e As EventArgs) Handles Button22.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_10100_COLLE_SUPPORT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub Button19_Click(sender As Object, e As EventArgs) Handles Button19.Click
Try
Process.Start("I:\_sharediao\DIV\tooling_ass_oyk\uet_tooling_oyk\ORTAK\UET_MEKANIK\19-)Catalogue\BIBLIOTHEQUE_2020\101_REMONTAGE_std_RENAULT\E14_00400_PALAN_HANDLING_EQUIPMENT")
Catch ex As Exception
MsgBox("Dosya Bulunamadı")
End Try
End Sub
Private Sub PictureBox9_Click(sender As Object, e As EventArgs) Handles PictureBox9.Click
End Sub
Private Sub PictureBox30_Click(sender As Object, e As EventArgs) Handles PictureBox30.Click
End Sub
End Class