-
Notifications
You must be signed in to change notification settings - Fork 9
/
OSAFEGui.py
742 lines (645 loc) · 22.4 KB
/
OSAFEGui.py
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
from pathlib import Path
from PySide2 import QtCore
from PySide2.QtWidgets import QMessageBox
import FreeCAD
import FreeCADGui as Gui
from draftutils.translate import translate
import civilwelcome
from osafe_gui import (
gui_automatic_rebars,
)
from osafe_py_widgets import (
gui_punch,
gui_dxf,
gui_automatic_strip,
explode_foundation,
osafe_views,
)
from osafe_draw import (
draw_slab,
draw_beam,
draw_base_foundation,
draw_strip,
draw_rectangular_slab,
)
from osafe_py_widgets import (
gui_export_strips
)
from osafe_objects import (
base_plate,
)
def QT_TRANSLATE_NOOP(ctx, txt): return txt
class CivilPdf:
def Activated(self):
from osafe_import_export import export
doc = FreeCAD.ActiveDocument
filename = get_save_filename('.pdf')
export.createPdf(doc, filename)
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"Civil_pdf",
"Export to pdf")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"Civil_pdf",
"export to pdf")
path = str(Path(__file__).parent /"osafe_images" / "pdf.svg")
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilPictur:
def Activated(self):
from osafe_import_export import export
doc = FreeCAD.ActiveDocument
i = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OSAFE").GetInt("picture_ext", 0)
ext = ('png', 'jpg', 'pdf')[i]
filename = get_save_filename(f'.{ext}')
export.createPdf(doc, filename)
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"Civil_pic",
"Export to picture")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"Civil_pic",
"export to picture")
path = str(Path(__file__).parent / "osafe_images" / "png.png")
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilExcel:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"Civil_excel",
"Export to excel")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"Civil_excel",
"export the result of punches to excel")
path = str(Path(__file__).parent / "osafe_images" / "xlsx.png")
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_import_export import export
doc = FreeCAD.ActiveDocument
punches = []
for o in doc.Objects:
if hasattr(o, "Proxy") and hasattr(o.Proxy, "Type"):
if o.Proxy.Type == "Punch":
punches.append(o)
filename = get_save_filename('.xlsx')
export.to_excel(punches, filename)
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilDocx:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"Civil_docx",
"Export to Word")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"Civil_docx",
"export the result to Word")
path = str(Path(__file__).parent / "osafe_images" / "word.png")
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
allow, check = allowed_to_continue(
'punch_docx.bin',
'https://gist.githubusercontent.com/ebrahimraeyat/b45fcd6577c27e5f89390b1c5eef0d1f/raw',
'punch'
)
if not allow:
return
from osafe_import_export import report
doc = FreeCAD.ActiveDocument
filename = get_save_filename('.docx')
report.create_punches_report(doc, filename)
show_warning_about_number_of_use(check)
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilEtabs:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_etabs",
"Import From Etabs")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_etabs",
"Read Data From Etabs")
path = str(
Path(__file__).parent / "osafe_images" / "etabs.png"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
import find_etabs
etabs, filename = find_etabs.find_etabs(
run=True,
)
if (
etabs is None or
filename is None
):
return
from osafe_py_widgets import etabs_panel
panel = etabs_panel.EtabsTaskPanel(etabs=etabs)
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return True
class CivilSafe1620:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_safe",
"Export to Safe")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_safe",
"Export Model to Safe")
path = str(
Path(__file__).parent / "osafe_images" / "safe.png"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
allow, check = allowed_to_continue(
'safe_export.bin',
'https://gist.githubusercontent.com/ebrahimraeyat/0f14001cbbd16a23bfc8d2844d97947b/raw/',
'punch',
n=5,
)
if not allow:
return
from osafe_py_widgets import safe_panel
panel = safe_panel.Safe12TaskPanel()
Gui.Control.showDialog(panel)
show_warning_about_number_of_use(check)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilForce:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_force",
"Assign Force")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_force",
"Assign force to foundation")
path = str(
Path(__file__).parent / "osafe_images" / "force.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_py_widgets import force_panel
panel = force_panel.ForceTaskPanel()
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilWall:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_wall",
"Create wall")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_wall",
"Create wall on foundation")
path = str(
Path(__file__).parent / "osafe_images" / "wall.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_py_widgets import wall_panel
panel = wall_panel.WallTaskPanel()
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilOpening:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil",
"Add opening From Etabs")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil",
"create an opening from selected points in etabs model")
path = str(
Path(__file__).parent / "osafe_images" / "opening.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_objects import opening
import etabs_obj
etabs = etabs_obj.EtabsModel(backup=False)
etabs.set_current_unit('kN', 'mm')
points = etabs.select_obj.get_selected_obj_type(1)
if len(points) > 2:
points_xyz = list(etabs.points.get_points_coords(points).values())
height = 4000
foun = None
doc = FreeCAD.ActiveDocument
z = 0
if hasattr(doc, 'Foundation'):
foun = doc.Foundation
# height = foun.height.Value
z = foun.level.Value
points_vec = [FreeCAD.Vector(p[0], p[1], z) for p in points_xyz]
# wire = Draft.make_wire(points_vec)
FreeCAD.ActiveDocument.openTransaction(translate("OSAFE","Make Opening"))
opening_obj = opening.make_opening(points_vec, height=height)
if foun is not None:
opening_objs = foun.openings + [opening_obj]
foun.openings = opening_objs
FreeCAD.ActiveDocument.commitTransaction()
doc.recompute()
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilExplodLoadPatterns:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_explode",
"Explode Load Patterns")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_explode",
"Explode Load Patterns")
path = str(
Path(__file__).parent / "osafe_images" / "explode.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
allow, check = allowed_to_continue(
'explode_loads.bin',
'https://gist.githubusercontent.com/ebrahimraeyat/f05421c70967b698ca9016a1bdb54b01/raw',
'punch',
)
if not allow:
return
from osafe_py_widgets import explode_seismic_load_patterns
panel = explode_seismic_load_patterns.Form()
Gui.Control.showDialog(panel)
show_warning_about_number_of_use(check)
return panel
def IsActive(self):
return True
class CivilCreateF2k:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_create_f2k",
"Create F2k File")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_create_f2k",
"Create F2k File")
path = str(
Path(__file__).parent / "osafe_images" / "f2k.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_py_widgets import create_f2k_command
import etabs_obj
etabs = etabs_obj.EtabsModel(backup=False)
panel = create_f2k_command.Form(etabs)
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilBaseFoundation:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_base_foundation",
"Create base_foundation")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_base_foundation",
"Create base of foundation")
path = str(
Path(__file__).parent / "osafe_images" / "automatic_base_foundation.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_py_widgets import base_foundation_panel
panel = base_foundation_panel.Form()
sel = Gui.Selection.getSelection()
if len(sel) > 0:
panel.form.selection_checkbox.setChecked(True)
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
class CivilFoundation:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"civil_foundation",
"Create foundation")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"civil_foundation",
"Create foundation")
path = str(
Path(__file__).parent / "osafe_images" / "foundation.svg"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
from osafe_py_widgets import foundation_panel
panel = foundation_panel.Form()
Gui.Control.showDialog(panel)
return panel
def IsActive(self):
return not FreeCAD.ActiveDocument is None
# class CivilChangeBranch:
# def GetResources(self):
# MenuText = QtCore.QT_TRANSLATE_NOOP(
# "branch",
# "Change branch")
# ToolTip = QtCore.QT_TRANSLATE_NOOP(
# "civil_change branch",
# "Change branch")
# path = str(
# Path(__file__).parent.absolute() / "osafe_images" / "change_branch.svg"
# )
# return {'Pixmap': path,
# 'MenuText': MenuText,
# 'ToolTip': ToolTip}
# def Activated(self):
# from safe import change_branch
# panel = change_branch.Form()
# Gui.Control.showDialog(panel)
# return panel
# def IsActive(self):
# return True
class CivilHelp:
def GetResources(self):
MenuText = QtCore.QT_TRANSLATE_NOOP(
"OSAFE-Help",
"OSAFE")
ToolTip = QtCore.QT_TRANSLATE_NOOP(
"OSAFE-Help",
"OSAFE Help")
path = str(
Path(__file__).parent.absolute() / "osafe_images" / "help.png"
)
return {'Pixmap': path,
'MenuText': MenuText,
'ToolTip': ToolTip}
def Activated(self):
import webbrowser
path = str(
Path(__file__).parent.absolute() / "help" / "help.pdf"
)
webbrowser.open_new(path)
def IsActive(self):
return True
# class CivilUpdate:
# def GetResources(self):
# MenuText = QtCore.QT_TRANSLATE_NOOP(
# "Civil_update",
# "Update")
# ToolTip = QtCore.QT_TRANSLATE_NOOP(
# "Civil_update",
# "Update")
# path = str(
# Path(__file__).parent.absolute() / "osafe_images" / "update.png"
# )
# return {'Pixmap': path,
# 'MenuText': MenuText,
# 'ToolTip': ToolTip}
# def Activated(self):
# import civil_update
# civil_update.update()
# def IsActive(self):
# return True
def get_save_filename(ext):
from PySide2.QtWidgets import QFileDialog
filters = f"{ext[1:]} (*{ext})"
filename, _ = QFileDialog.getSaveFileName(None, 'select file',
None, filters)
if not filename:
return
if not ext in filename:
filename += ext
return filename
def allowed_to_continue(
filename,
gist_url,
dir_name,
n = 2,
):
import check_legal
check = check_legal.CheckLegalUse(
filename,
gist_url,
dir_name,
n = n,
)
allow, text = check.allowed_to_continue()
if allow and not text:
return True, check
else:
if text in ('INTERNET', 'SERIAL'):
ui = SerialForm()
ui.form.serial.setText(check.serial)
Gui.Control.showDialog(ui)
# if ui.setupUi():
# Gui.Control.closeDialog(ui)
return False, check
elif text == 'REGISTERED':
msg = "Congrajulation! You are now registered, enjoy using this features!"
QMessageBox.information(None, 'Registered', str(msg))
return True, check
return False, check
def show_warning_about_number_of_use(check):
check.add_using_feature()
_, no_of_use = check.get_registered_numbers()
n = check.n - no_of_use
if n > 0:
msg = f"You can use this feature {n} more times!\n then you must register the software."
QMessageBox.warning(None, 'Not registered!', str(msg))
class SerialForm:
def __init__(self):
serial_ui = str(
Path(__file__).parent / 'osafe_widgets' / 'serial.ui'
)
self.form = Gui.PySideUic.loadUi(serial_ui)
class RectangleSlab:
""" RectangleSlab command definition.
"""
def GetResources(self):
return {'Pixmap' : str(Path(__file__).parent / 'osafe_images' / 'rectangle.svg'),
'MenuText': "Draw Rectangle Slab",
'ToolTip': "EXPERIMENTAL\nDraw Rectangle Slab.\nSelect 2 Punches to draw a slab between them."}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
def Activated(self):
self.punches = Gui.Selection.getSelection()
self.continue_mode = False
if len(self.punches) == 2:
try:
self.create_slab()
except:
self.create_by_selection()
else:
self.create_by_selection()
def create_slab(self):
punch1, punch2 = self.punches
punches = []
for o in (punch1, punch2):
if hasattr(o, "Proxy") and \
hasattr(o.Proxy, "Type") and \
o.Proxy.Type == "Punch":
punches.append(o)
if len(punches) == 2:
from osafe_objects import rectangular_slab
slab = rectangular_slab.make_rectangle_slab(punch1.center_of_load, punch2.center_of_load, width=1000, height=800)
foun = FreeCAD.ActiveDocument.Foundation
foun.tape_slabs = foun.tape_slabs + [slab]
FreeCAD.ActiveDocument.recompute([foun, punch1, punch2])
def create_by_selection(self):
FreeCAD.Console.PrintMessage("Select the first punch"+ "\n")
self.punches = []
self.callback = Gui.Selection.addObserver(self)
def addSelection(self, doc, obj, sub, pnt):
Gui.Selection.removeObserver(self)
if len(self.punches) == 0:
FreeCAD.Console.PrintMessage("Select the second punch"+ "\n")
self.punches.append(FreeCAD.getDocument(doc).getObject(obj))
self.callback = Gui.Selection.addObserver(self)
elif len(self.punches) == 1:
self.punches.append(FreeCAD.getDocument(doc).getObject(obj))
self.create_slab()
self.punches = []
if self.continue_mode:
# TODO: fix continue mode according to Draft Commandsgit
self.callback = Gui.Selection.addObserver(self)
else:
self.finish()
def finish(self):
if self.callback:
Gui.Selection.removeObserver(self.callback)
Gui.addCommand('Civil_etabs', CivilEtabs())
Gui.addCommand('Civil_opening_etabs', CivilOpening())
Gui.addCommand('Civil_force', CivilForce())
Gui.addCommand('Civil_wall', CivilWall())
Gui.addCommand('civil_safe', CivilSafe1620())
# Gui.addCommand('Copy', Copy())
Gui.addCommand('Civil_pdf', CivilPdf())
Gui.addCommand('Civil_pic', CivilPictur())
Gui.addCommand('Civil_welcome', civilwelcome.CivilWelcome())
Gui.addCommand('Civil_excel', CivilExcel())
Gui.addCommand('Civil_docx', CivilDocx())
Gui.addCommand('Civil_help', CivilHelp())
# Gui.addCommand('Civil_update', CivilUpdate())
# Gui.addCommand('Civil_branch', CivilChangeBranch())
Gui.addCommand('Civil_dxf', gui_dxf.OsafeDxf())
Gui.addCommand('osafe_import_dxf', gui_dxf.OsafeImportDxf())
# Gui.addCommand('civil_explod_load_patterns', CivilExplodLoadPatterns())
Gui.addCommand('create_f2k_file', CivilCreateF2k())
Gui.addCommand('automatic_base_foundation', CivilBaseFoundation())
Gui.addCommand('create_foundation', CivilFoundation())
Gui.addCommand('civil_slab', draw_slab.Slab())
Gui.addCommand('civil_beam', draw_beam.Beam())
# Gui.addCommand('civil_base_foundation', gui_base_foundation.BaseFoundation())
Gui.addCommand('civil_punch', gui_punch.Punch())
Gui.addCommand('osafe_automatic_strip', gui_automatic_strip.OsafeAutomaticStrip())
command_list = [
"Civil_etabs",
"automatic_base_foundation",
"create_foundation",
"osafe_automatic_strip",
"Civil_opening_etabs",
'civil_punch',
"civil_safe",
# 'civil_sketch',
# "civil_explod_load_patterns",
# "Civil_update",
# "Civil_branch",
# "create_f2k_file",
]
export_list = [
"osafe_export_strips",
"Civil_pdf",
"Civil_pic",
"Civil_excel",
"Civil_docx",
"Civil_dxf",
"osafe_import_dxf",
]
draw_list = [
"civil_beam",
"osafe_base_foundation",
"osafe_draw_strip",
# "osafe_rectangular_slab",
# 'civil_slab',
'civil_base_plate',
"Draft_Wire",
"osafe_automatic_rebars",
]
assign_list = [
"Civil_force",
"Civil_wall",
]
edit_list = [
"Draft_Move",
"Draft_Edit",
"Draft_Trimex",
"Draft_Join",
"Draft_Split",
"Draft_Scale",
"Draft_Stretch",
"Draft_Rotate",
"Draft_Offset",
# "Draft_Mirror",
# "Draft_Draft2Sketch",
# "Draft_Upgrade",
# "Draft_Downgrade",
"osafe_explode_foundation",
]
view_list = [
"Separator",
# "OSAFE_wireframe_views",
"OSAFE_view_beams",
"OSAFE_view_columns",
"OSAFE_view_basefoundation",
"OSAFE_view_foundations",
"OSAFE_view_design_layer",
"OSAFE_view_punch",
"OSAFE_view_slabs",
"OSAFE_view_arch_wall",
# "OSAFE_view_rebars",
# "OSAFE_view_group",
]
help_list = [
"Separator",
"Civil_help",
]
snap_list = [
'Draft_Snap_Midpoint',
'Draft_Snap_Perpendicular',
'Draft_Snap_Grid',
'Draft_Snap_Intersection',
'Draft_Snap_Parallel',
'Draft_Snap_Endpoint',
'Draft_Snap_Angle',
'Draft_Snap_Center',
'Draft_Snap_Extension',
'Draft_Snap_Near',
'Draft_Snap_Ortho',
'Draft_Snap_Special',
'Draft_Snap_Dimensions',
'Draft_Snap_WorkingPlane',
'Draft_ToggleGrid',
'Draft_Snap_Lock',
]