with BuildPart() as hole:
Rectangle(small, small, mode=Mode.ADD)
Classes should check to see if they are in the appropriate context.
with BuildSketch() as hole:
Rectangle(small, small, mode=Mode.ADD)
with Locations((25, 0)):
Rectangle(tiny, tiny, mode=Mode.SUBTRACT)
with BuildPart() as part2:
with BuildSketch() as outline:
Rectangle(large, large, mode=Mode.ADD)
Add(hole, mode=Mode.SUBTRACT)
Extrude(amount=5)
_add_to_context should check to see if an instance of the Builder has been passed in and raise an exception with something like: "did you mean .sketch?"
Classes should check to see if they are in the appropriate context.
_add_to_context
should check to see if an instance of theBuilder
has been passed in and raise an exception with something like: "did you mean