Overview
PyAnsys Geometry is a Python client library for the Ansys Geometry service, as well as other CAD Ansys products such as Ansys Discovery and Ansys SpaceClaim.
Installation
You can use pip to install PyAnsys Geometry.
pip install ansys-geometry-core
Or, using uv:
uv add ansys-geometry-core
For optional graphics support (PyVista, VTK, pygltflib), install the graphics extra. To include all optional dependencies, use the all extra instead:
pip install "ansys-geometry-core[graphics]"
pip install "ansys-geometry-core[all]"
uv add "ansys-geometry-core[graphics]"
uv add "ansys-geometry-core[all]"
You can also install PyAnsys Geometry from Conda-Forge:
conda install -c conda-forge ansys-geometry-core
To install the latest development version, run these commands:
Using pip:
git clone https://github.com/ansys/pyansys-geometry
cd pyansys-geometry
pip install -e .
Using uv:
git clone https://github.com/ansys/pyansys-geometry
cd pyansys-geometry
uv sync
For more information, see Getting Started.
Basic usage
This code shows how to import PyAnsys Geometry and use some basic capabilities:
from ansys.geometry.core import launch_modeler
from ansys.geometry.core.math import Plane, Point3D, Point2D
from ansys.geometry.core.misc import UNITS, Distance
from ansys.geometry.core.sketch import Sketch
# Define a sketch
origin = Point3D([0, 0, 10])
plane = Plane(origin, direction_x=[1, 0, 0], direction_y=[0, 1, 0])
# Create a sketch
sketch = Sketch(plane)
sketch.circle(Point2D([1, 1]), 30 * UNITS.m)
sketch.plot()
# Start a modeler session
modeler = launch_modeler()
# Create a design
design = modeler.create_design("ModelingDemo")
# Create a body directly on the design by extruding the sketch
body = design.extrude_sketch(
name="CylinderBody", sketch=sketch, distance=Distance(80, unit=UNITS.m)
)
# Plot the body
design.plot()
# Export the model to SCDOCX format
file_path = design.export_to_scdocx()
For comprehensive usage information, see Examples in the PyAnsys Geometry documentation.
Documentation and issues
Documentation for the latest stable release of PyAnsys Geometry is hosted at PyAnsys Geometry documentation.
In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.
On the PyAnsys Geometry Issues page, you can create issues to report bugs and request new features. On the PyAnsys Geometry Discussions page or the Discussions page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback.
To reach the project support team, email pyansys.core@ansys.com.
Release files for ansys-geometry-core 0.17.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansys_geometry_core-0.17.2.tar.gz | 23.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansys_geometry_core-0.17.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.9 MB
Release files / ansys_geometry_core-0.17.2.tar.gz
| Download URL | ansys_geometry_core-0.17.2.tar.gz |
|---|---|
| Size | 23.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
234dd4cba4e9e9ed5e92b357fec641626ec7c81f17ff779fbed591b9af137a55
|
|
BLAKE2b-256 checksum How to use checksums |
25bab6ede208f5db314aa41c6e3475a03a21bf8ca240c615869ca17773ad8877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / ansys_geometry_core-0.17.2-py3-none-any.whl
| Download URL | ansys_geometry_core-0.17.2-py3-none-any.whl |
|---|---|
| Size | 596.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08d265462bd6a42ce71e37ef4f17df688e027addc5de7535537d95c6f70a8145
|
|
BLAKE2b-256 checksum How to use checksums |
8fd87afc1f9be4f4352deea959dadc127762ff41141b2430751615e8e2c80b59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency log