Open CePeU opened 5 months ago
To help address this issue commit 338954580ed9b65b5e205e2d27c5bca1c0d10ef3 introduces new error messages to help guide new users:
with BuildPart() as a:
Box(1, 1, 1)
with BuildPart() as b:
Cylinder(1, 1)
c = a + b
RuntimeError: BuildPart is a builder of Shapes and can't be combined. The object being constructed is accessible via the 'part' attribute.
(the same error message applies to '-' and &
operators).
Invalid method calls are also handled as shown here:
with BuildSketch() as a:
Rectangle(1, 1)
a.export_stl("broken.stl")
AttributeError: 'BuildSketch' has no attribute 'export_stl'. Did you intend '<BuildSketch>.sketch.export_stl'?
Builder Mode - WORKS
Algebra Mode - WORKS
MIXED MODE - FAILS
Explain that you need to use PART