Obsolete "XY" to Plane.XY and other minor doc fixes

This commit is contained in:
jdegenstein 2022-11-28 16:00:25 -06:00 committed by GitHub
parent 0e1b58eda7
commit f2e350803e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,10 +55,10 @@ workplane will apply. For example:
.. code-block:: python
with BuildPart(workplane="XY") example:
with BuildPart(Plane.XY) as example:
with BuildSketch() as bottom:
...
with Workplanes("XZ") as vertical:
with Workplanes(Plane.XY) as vertical:
with BuildSketch() as side:
...
with Workplanes(example.faces().sort_by(SortBy.Z)[-1]):
@ -130,7 +130,7 @@ to retrieve the global locations relative to the current workplane(s) as follows
.. code-block:: python
with Workplanes("XY", "XZ"):
with Workplanes(Plane.XY, Plane.XZ):
locs = GridLocations(1, 1, 2, 2)
for l in locs:
print(l)