Skip to main content

cq-acis

Parse ACIS SAT/SAB data and convert supported B-rep geometry to CadQuery/OpenCascade shapes.

日本語版: README.ja.md

This project is experimental. Supported geometry depends on the save version and producer. Unsupported entities remain available as raw records; conversion raises an error when it cannot build the requested shape within source precision. Projected 2D trims are checked against the unchanged 3D curves.

Features

  • Read legacy and modern SAT headers, counted strings, and entity references.
  • Decode SAT save versions 105, 400, 600, and 700, plus selected SAB and Autodesk ShapeManager binary profiles.
  • Convert supported lines, circles, ellipses, planes, cylinders, cones, spheres, and tori, with experimental support for explicit NURBS and selected tolerant boundaries.
  • Inspect topology, metadata, diagnostics, and the source data of unknown records.
  • Use a shared model API to connect external decoders to the CadQuery converter.

See geometry support and limitations and SAB/ASM support for the accepted profiles.

Installation

Requires Python 3.11 or newer. Parsing and the shared model need no geometry kernel; shape conversion needs one of two extras:

python -m pip install "cq-acis[cadquery]"  # CadQuery 2.8 or later: shapes, Workplanes, authoring
python -m pip install "cq-acis[occt]"      # bare OCCT shapes via cadquery-ocp-novtk, without CadQuery

A plain pip install cq-acis installs only the parser and the shared model (since 0.4.0; earlier releases always installed CadQuery). Installing a prebuilt wheel does not require Rust. To install from a source checkout, install Rust 1.83 or newer and a C linker first, then run:

python -m pip install -e ".[cadquery]"

The platform requirements of CadQuery or OCP also apply.

Quick start

Parse SAT records and follow topology references:

from pathlib import Path
from cq_acis import parse_sat_model

model = parse_sat_model(Path("model.sat").read_bytes())
for body in model.bodies():
    lump = model.resolve(body.lump)
    print(body.index, lump.index if lump else None)

Import a SAT file as a CadQuery Workplane:

from cq_acis import import_sat_file

result = import_sat_file("model.sat")
shape = result.val()
assert shape.isValid()
print(shape.Volume())

For binary SAB/ASM input:

from pathlib import Path
from cq_acis import parse_sab_model, to_cadquery

model = parse_sab_model(Path("model.sab").read_bytes(), source_id="model.sab")
print(model.diagnostics)
result = to_cadquery(model)

Without CadQuery (cq-acis[occt]), convert to bare OCCT shapes instead:

from cq_acis import convert_model_occt

shapes = convert_model_occt(model)  # one TopoDS_Shape per body

Parsing a file does not guarantee that all its geometry can be converted. See usage and error handling.

Documentation

The public API and supported format subset may change as coverage expands.

License

The project code is licensed under the MIT License. See third-party notices for dependency attribution. The repository's test corpus is excluded from the Python distributions and has separate license notices.

Metadata

Release files for cq-acis 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cq-acis 0.4.0
File Size Uploaded Provenance Actions
cq_acis-0.4.0.tar.gz 152.0 kB With provenance Details for cq_acis-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cq-acis 0.4.0
File Actions
cq_acis-0.4.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for cq_acis-0.4.0-cp310-abi3-win_amd64.whl
cq_acis-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for cq_acis-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
cq_acis-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for cq_acis-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
cq_acis-0.4.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for cq_acis-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
cq_acis-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for cq_acis-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 2.8 MB

Release files / cq_acis-0.4.0.tar.gz

Download URL cq_acis-0.4.0.tar.gz
Size 152.0 kB
Tags Source
SHA-256 checksum
How to use checksums
531b931e1067dd6974d5a386d95b3c344c90282940450ecdb552b6304285d9c7
BLAKE2b-256 checksum
How to use checksums
bf9bafad90694db5d11d747d7eda92f53d8cf8bcee6d91ef8db374e2c9d53bbb
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 Nov 9, 2026.

Transparency log

Release files / cq_acis-0.4.0-cp310-abi3-win_amd64.whl

Download URL cq_acis-0.4.0-cp310-abi3-win_amd64.whl
Size 490.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b0993c280d903831180aecdab5143706cbbca76bc85aaf5e820d8debdc935145
BLAKE2b-256 checksum
How to use checksums
8d8023902e866c1dc228b4273030444549438fe702e43faeaebc4952c4c39713
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 Nov 9, 2026.

Transparency log

Release files / cq_acis-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL cq_acis-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 571.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e99061f60f06484a1dcd2982f4c668b5049262ca3a343d3eaf16773bdfec8a85
BLAKE2b-256 checksum
How to use checksums
5359ce13f2acbbeac40d4de66fe210749a4a9ca589c5aeaa6e0ab8a779f5d6e9
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 Nov 9, 2026.

Transparency log

Release files / cq_acis-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL cq_acis-0.4.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 543.7 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
609ed9d6c1a8c95676593363eae7675e47dfde4b948b1d773533e2bf816a7492
BLAKE2b-256 checksum
How to use checksums
c33e8c27591c6260ba17e453712ffea0b21606e8aefdb0527548d93387e0d067
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 Nov 9, 2026.

Transparency log

Release files / cq_acis-0.4.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL cq_acis-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Size 532.3 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1fb8f4902d19b197191c165121ba9034545934cca44996dfc238c50ce6084369
BLAKE2b-256 checksum
How to use checksums
a932894e6417043ad8168e6b738bc0a1a504bf49f5315f4dbc15d7ee1ae54b89
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 Nov 9, 2026.

Transparency log

Release files / cq_acis-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL cq_acis-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 538.7 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b0a8264479ef21bf5b2126dbd89d2bf41e6608841b246f58f942909a7db16cf2
BLAKE2b-256 checksum
How to use checksums
696675ee79bdd611b6cf8e9aa1b6e173d07bc0d0d5d180b950df50abdd1708f6
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 Nov 9, 2026.

Transparency log

Security for cq-acis 0.4.0

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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for cq_acis-0.4.0.tar.gz

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 Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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