Skip to content

Commit 6c8030d

Browse files
author
felix-otto
authored
add extrustion distance to get sample code working (#1275)
Without the parameter I got the following error message: TypeError: extrude() missing 1 required positional argument: 'distance'
1 parent 0364153 commit 6c8030d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/primer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ your operations, and defines the first solid object created as the 'context soli
144144
you create are automatically combined (unless you specify otherwise) with that solid. This happens even if the
145145
solid was created a long way up in the stack. For example::
146146

147-
Workplane('XY').box(1,2,3).faces(">Z").circle(0.25).extrude()
147+
Workplane('XY').box(1,2,3).faces(">Z").circle(0.25).extrude(1)
148148

149149
Will create a 1x2x3 box, with a cylindrical boss extending from the top face. It was not necessary to manually
150150
combine the cylinder created by extruding the circle with the box, because the default behavior for extrude is

0 commit comments

Comments
 (0)