Skip to content

Commit

Permalink
add extrustion distance to get sample code working
Browse files Browse the repository at this point in the history
Without the parameter I got the following error message:
TypeError: extrude() missing 1 required positional argument: 'distance'
  • Loading branch information
felix-otto authored Feb 17, 2023
1 parent 0364153 commit 3f1a425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/primer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f1a425

Please sign in to comment.