1from salome.shaper import model
2
3model.begin()
4partSet = model.moduleDocument()
5
6### Create Part
7Part_1 = model.addPart(partSet)
8Part_1_doc = Part_1.document()
9
10### Create Box
11Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
12
13### Create Wire
14Wire_1_objects = [model.selection("EDGE", "[Box_1_1/Left][Box_1_1/Bottom]"),
15 model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Left]"),
16 model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Top]"),
17 model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Right]")]
18Wire_1 = model.addWire(Part_1_doc, Wire_1_objects, False)
19
20### Create Fillet1D
21Fillet1D_1 = model.addFillet(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], 3)
22
23model.end()