Skip to main content
PyAnsys Geometry

PyAnsys Python MIT Ruff Codecov GH-CI pre-commit PyPI PyPI Downloads Conda Conda Downloads Ask DeepWiki Codacy Badge

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys_geometry_core-0.17.1.tar.gz (23.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_geometry_core-0.17.1-py3-none-any.whl (588.6 kB view details)

Uploaded Python 3

File details

Details for the file ansys_geometry_core-0.17.1.tar.gz.

File metadata

  • Download URL: ansys_geometry_core-0.17.1.tar.gz
  • Upload date:
  • Size: 23.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ansys_geometry_core-0.17.1.tar.gz
Algorithm Hash digest
SHA256 6435685750006ef811af4b252618fe20ab081ecb01316da11165ec4d6d185fec
MD5 98ff8d7e1a9f30caedb6b06a6a5fd198
BLAKE2b-256 4fbf844156efb72430d6895c4c794c94e63f62ab79de2cbf791a2b8aa678fc78

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_geometry_core-0.17.1.tar.gz:

Publisher: ci_cd.yml on ansys/pyansys-geometry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_geometry_core-0.17.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_geometry_core-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e989ad0d6979a34208d1381dc8c9dab5c9595d32536fa6c7a43dd5e95f6015
MD5 c952602411cc3753d73470f033f39a0e
BLAKE2b-256 856d9f0f9bfd7be1f228b358af83b192024ef8accb5f9d4c4550807becf578e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_geometry_core-0.17.1-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pyansys-geometry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.17.1 This release

2 files

0.17.0

2 files

0.16.3

2 files

0.16.2

2 files

0.16.1

2 files

0.16.0

2 files

0.15.5

2 files

0.15.4

2 files

0.15.3

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

0.14.2

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.9

2 files

0.10.8

2 files

0.10.7

2 files

0.10.6

2 files

0.10.5

2 files

0.10.4

2 files

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.14

2 files

0.4.13

2 files

0.4.12

2 files

0.4.11

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.10

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page