/
loadToolbar.py
62 lines (48 loc) · 967 Bytes
/
loadToolbar.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
def getItems(iType):
parts = []
if iType == "Parameterization":
parts = [
"Spreadsheet_CreateSheet",
"Spreadsheet_MergeCells"
]
if iType == "Furniture Parts":
parts = [
"Std_Part",
"PartDesign_Body",
"PartDesign_NewSketch",
"PartDesign_Pad",
"Part_Box"
]
if iType == "Transformations":
parts = [
"Draft_Array",
"Draft_PolarArray",
"PartDesign_LinearPattern",
"PartDesign_Plane",
"Part_Mirror",
"PartDesign_Mirrored",
"PartDesign_MultiTransform",
"Draft_Clone"
]
if iType == "Operations":
parts = [
"PartDesign_Hole",
"Part_Boolean"
]
if iType == "Manage":
parts = [
"Std_ViewFitAll",
"Part_Measure_Linear",
"Std_Group",
"Std_LinkMakeGroup",
"Std_LinkMake",
"Std_MergeProjects",
"Std_TextureMapping"
]
if iType == "Coding":
parts = [
"Std_DlgMacroExecute",
"Std_DlgMacroExecuteDirect",
"Std_DependencyGraph"
]
return parts