From 3f1a4253107a31c804494f1e3d4953fc9f6829dc Mon Sep 17 00:00:00 2001 From: felix-otto <122539281+felix-otto@users.noreply.github.com> Date: Fri, 17 Feb 2023 07:48:45 +0100 Subject: [PATCH] add extrustion distance to get sample code working Without the parameter I got the following error message: TypeError: extrude() missing 1 required positional argument: 'distance' --- doc/primer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/primer.rst b/doc/primer.rst index 27a5c28c4..65229ce26 100644 --- a/doc/primer.rst +++ b/doc/primer.rst @@ -144,7 +144,7 @@ your operations, and defines the first solid object created as the 'context soli you create are automatically combined (unless you specify otherwise) with that solid. This happens even if the solid was created a long way up in the stack. For example:: - Workplane('XY').box(1,2,3).faces(">Z").circle(0.25).extrude() + Workplane('XY').box(1,2,3).faces(">Z").circle(0.25).extrude(1) Will create a 1x2x3 box, with a cylindrical boss extending from the top face. It was not necessary to manually combine the cylinder created by extruding the circle with the box, because the default behavior for extrude is