Skip to content

Commit 4f4a656

Browse files
docs: simplify README example (#1169)
Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com>
1 parent ef147fe commit 4f4a656

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ This code shows how to import PyAnsys Geometry and use some basic capabilities:
7272
.. code:: python
7373
7474
from ansys.geometry.core import launch_modeler
75-
from ansys.geometry.core.designer import DesignFileFormat
7675
from ansys.geometry.core.math import Plane, Point3D, Point2D
7776
from ansys.geometry.core.misc import UNITS, Distance
7877
from ansys.geometry.core.sketch import Sketch
@@ -100,8 +99,8 @@ This code shows how to import PyAnsys Geometry and use some basic capabilities:
10099
# Plot the body
101100
design.plot()
102101
103-
# Download the model
104-
design.download(file_location="file.scdocx", format=DesignFileFormat.SCDOCX)
102+
# Export the model to SCDOCX format
103+
file_path = design.export_to_scdocx()
105104
106105
For comprehensive usage information, see `Examples`_ in the `PyAnsys Geometry documentation`_.
107106

doc/changelog.d/1169.miscellaneous.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs: simplify README example

0 commit comments

Comments
 (0)