OKH for Chair
Jbutler-helpful opened this issue · comments
It need to follow the example code:
Product atoms
chair = SupplyAtom("Q15026", "chair")
chairLeg = SupplyAtom("QH100", "chair leg")
chairSeat = SupplyAtom("QH101", "chair seat")
chairBack = SupplyAtom("QH102", "chair back")
BOM atoms
fabric = SupplyAtom("QH103", "fabric")
wood = SupplyAtom("QH104", "wood")
stuffing = SupplyAtom("QH105", "stuffing")
upholstery = SupplyAtom("QH106", "upholstery")
frame = SupplyAtom("QH107", "frame")
nails = SupplyAtom("QH108", "nails")
Tool Atoms
plane = SupplyAtom("Q204260", "plane")
lathe = SupplyAtom("Q187833", "lathe")
hammer = SupplyAtom("Q25294", "hammer")
saw = SupplyAtom("Q125356", "saw")
designs
chairDesign = ProductDesign.create(
"Funky Chair Design",
chair,
[chairLeg, chairSeat, chairBack, nails],
[hammer],
[])
legDesign = ProductDesign.create(
"Leg Design",
chairLeg,
[wood],
[lathe],
[])
seatDesign1 = ProductDesign.create(
"Seat Design 1",
chairSeat,
[fabric],
[plane],
[])
seatDesign2 = ProductDesign.create(
"Seat Design 2",
chairSeat,
[frame, stuffing, upholstery],
[sewingMachine],
[])