-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest.py
63 lines (57 loc) · 2.49 KB
/
test.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
def generate_result_dict(fcstd_file_path=""):
result_dict = {
"date" : "01.01.2024",
"file" : "test_file.FCStd",
"screenshot" : "C:\\Users\\Aleksander\\Documents\\GitHub\\FreeCAD-Beginner-Assistant\\test_file.png",
"pts-reached" : "14",
"pts-available" : "21",
"rank" : "bronze",
"best-practices" : []
}
result_dict["best-practices"].append(
{
"id" : 1,
"action" : "You have referenced a face of your 3D model (topological element) for your sketch.",
"effect" : "This might lead to the sketch losing its reference, when the topological elements change.",
"solution" : "Reference one of the Origin planes or create a new plane, that also only references one of the Origin planes instead.",
"status" : "Passed"
}
)
result_dict["best-practices"].append(
{
"id" : 2,
"action" : "You have created a sketch, that is under constrained",
"effect" : "This might lead to unexpected behaviour, when you use that sketch for a feature",
"solution" : "Go back to your sketch and fully define it using dimensional of geometrical constraints.",
"status" : "Passed"
}
)
result_dict["best-practices"].append(
{
"id" : 3,
"action" : "You have created a sketch, that is over constrained",
"effect" : "This might lead to unexpected behaviour, when you use that sketch for a feature",
"solution" : "Go back to your sketch and remove redundant constraints.",
"status" : "Passed"
}
)
result_dict["best-practices"].append(
{
"id" : 4,
"action" : "Your 3D model is not symmetric in relation to one of the Origin planes",
"effect" : "Designing your 3D model symmetric to as many Origin planes as possible makes it easier to modify it in the future.",
"solution" : "Try to create your 3D model symmetric in relation to as many Origin planes as possible.",
"status" : "Passed"
}
)
result_dict["best-practices"].append(
{
"id" : 5,
"action" : "You have created a complex sketch that uses a lot of geometrical elements and constraints.",
"effect" : "This might lead to performance issues and make building your 3D model slow.",
"solution" : "Split up your complex sketch into multiple simple sketches if possible.",
"status" : "Passed"
}
)
return result_dict
print(generate_result_dict())