Skip to main content

icadkit

A Rust-based Python reader for iCAD SX .icd files. Read saved part structure, coordinate frames, names and selected attributes; inspect native box/cylinder parameters; and extract embedded Parasolid geometry.

Version 0.3.7 adds:

  • Saved final bodies on rolling-ball blend surfaces and on toroidal faces that reach their axis, through parasolid-core 0.3.7 and the preview extra pinned to parasolid-kit[occt]==0.3.7. The local sample rises from 28,896 to 29,386 of 29,703 bound bodies, with the previously converted bodies unchanged.
  • One declaration per backend version (Cargo.toml, pyproject.toml); the runtime checks of the backend version are gone.

Version 0.3.6 added saved final bodies on spun surfaces (SPUN_SURF), line/arc profile extrusions as CSG operands and decoded surface and edge items of the trailing container.

Version 0.3.5 added view inventories and saved 2D geometry, twenty-six further catalog-free schema keys, the trailing container, saved final bodies bound through V8 association records and V7 source IDs, more native primitives, saved 3D parameter tables and explicit external-reference resolution.

Version 0.3.0 added the native file viewer, broader part access, optional V7L7 boolean evaluation and saved final body display.

icadkit is experimental. Unsupported geometry remains in the part inventory; unknown values and source ranges are preserved. Part frames, native primitive frames and embedded resource coordinates have separate contracts. Complete assembly geometry, inherited attributes and complete drawing reconstruction remain unsupported. Read the support boundaries and release notes.

Run icadkit view model.icd to open qualified native primitives and their part properties. The base viewer works without the preview extra.

Installation

The base reader supports standard GIL-enabled CPython 3.10–3.14. Wheel targets are Linux x86_64 (glibc 2.28+), Windows x86_64 and macOS ARM64 (11+):

python -m pip install icadkit

The native extension bundles parasolid-core and has no mandatory Python runtime dependencies. iCAD, Wine and an external SDK are not required. An explicit compatible catalog is needed only for schemas absent from the built-in profiles. Release files are available on the GitHub releases page.

For preview/GLB, install python -m pip install 'icadkit[preview]'. The optional OCCT dependency requires glibc 2.31+ on Linux; see preview requirements. To build from a source checkout or sdist, install Rust 1.88+ and a C linker, then run python -m pip install . (or '.[preview]').

Part structure, frames and attributes

import icadkit

doc = icadkit.read("assembly.icd")
parts = doc.read_parts()
print(parts.status, parts.diagnostics)

for part in parts.walk(include_root=False):
    print(part.name, part.parent_id, part.definition_id)
    print(part.comment, part.extra_info)
    print(part.placement.local_transform, part.placement.world_transform)

rows = parts.to_rows()  # JSON-compatible rows; not certified BOM quantities.

The reader supports the observed little-endian V7L7 part layout: hierarchy, names, comments, extended text and saved external reference names. Qualified V7L7 part frames use millimetres and are evaluated relative to the saved root frame. Qualified standalone primitive owners also expose geometry and saved entity appearance. The separate CSG API and uv run --extra preview icadkit view model.icd --csg evaluate qualified unions, differences and intersections of boxes, cylinders, prisms and profile extrusions, including saved single-leaf extrusion bodies. Unknown programs retain diagnostics without substitute geometry. The saved final body mode, view --saved-brep, also displays qualified V7L7/V8L3 final bodies and imported solids, including bounded spherical, conical and toroidal surfaces. V8L3 resource sharing preserves each occurrence's saved placement. An explicit schema catalog is needed when the exact built-in profile lacks a required type. Counted metadata framing also extends part inventories while preserving unknown records and diagnostics. Version 0.3.0 also preserves bounded binary attributes as raw owned records, reads V8L1/V8L2 part inventories without assigning units or geometry, and displays native cones/frusta and full ring tori. The updated exact V34 profile in parasolid-core 0.3.1 removes the catalog requirement for qualified toroidal resources.

Version 0.3.5 extends qualified millimetre frames and bounded native/saved geometry to V7L6/V7L7 and V8L1/V8L2/V8L3, including internal mirrors. Signed occurrence orientation is separate from already placed geometry; see mirror semantics. Explicit external-reference resolution now composes qualified child and grandchild placements, including mirrors, through read_assembly() or icadkit view model.icd --reference-root /path/to/bundle. Saved names, resolved paths, hashes and missing/ambiguous references remain separate. Extended information is stored text, not interpreted typed engineering properties. Check each scope's status before relying on its values.

Embedded geometry

import icadkit

doc = icadkit.read("model.icd")
for resource in doc.resources:
    print(resource.resource_id, resource.encoding)
    geometry = doc.read_geometry(resource.resource_id)
    print(geometry.status, geometry.diagnostics)
    if geometry.brep is not None:
        print(geometry.brep.counts)
    geometry.require_complete("brep")  # Raises if this scope is incomplete.

inspect() reads leading structure. read() owns the input and indexes resources; decompression and geometry parsing happen on request. A complete resource B-Rep does not establish whole-model completeness. An empty resource list does not establish that a file contains no native geometry.

Paths accept strings or Path objects; bytes means file contents. Structured format errors derive from icadkit.IcadError; file access errors use OSError. See the API reference for schemas, limits and pagination.

Command line

icadkit info --json
icadkit inspect model.icd --json
icadkit parts assembly.icd --json
icadkit resources model.icd --json
icadkit extract model.icd RESOURCE_ID --output body.x_b --json
icadkit check model.icd --target geometry --resource RESOURCE_ID --json
# Requires the preview extra; use the independently known unit of the resource.
icadkit preview model.icd --resource RESOURCE_ID --source-unit m --output preview

Use an ID from resources in place of RESOURCE_ID. Extraction and preview refuse existing output paths. python -m icadkit provides the same commands. Preview requires a declared source unit; its GLB uses metres and resource-local coordinates, without part placement or saved appearance. --write-only --json exports without starting a server. CLI scope statuses and exit codes are explained in the reference.

License

icadkit is offered under PolyForm Noncommercial 1.0.0. Commercial licenses are available from UnRobotics Inc.. Dependencies retain their own licenses and copyright notices. Read the licensing guide, license notice and third-party notices for details.

Metadata

Release files for icadkit 0.3.7

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

Source distribution (sdist)

Source distribution for icadkit 0.3.7
File Size Uploaded Provenance
icadkit-0.3.7.tar.gz 411.9 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for icadkit 0.3.7
File Interpreter ABI Platform
icadkit-0.3.7-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
icadkit-0.3.7-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
icadkit-0.3.7-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 3.0 MB

Release files / icadkit-0.3.7.tar.gz

Download URL icadkit-0.3.7.tar.gz
Size 411.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6cfb37d2bc86fbc065da6cbb8611184545c6e1ad508b28e9bda836f3f6635216
BLAKE2b-256 checksum
How to use checksums
9514b3c0ba54d45a0a51949cc6337aa5f338aaeca8198a09048c39e9a098e582
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 Oct 7, 2026.

Transparency log

Release files / icadkit-0.3.7-cp310-abi3-win_amd64.whl

Download URL icadkit-0.3.7-cp310-abi3-win_amd64.whl
Size 774.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0f45375c8abbfe9afa37327f27fd4b63bcbda565e186c721160ac2d88854afa8
BLAKE2b-256 checksum
How to use checksums
e3d1b9af9ab18bbab1bb61832e8e8960d21a72a6bc931068580f733d7ee145f0
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 Oct 7, 2026.

Transparency log

Release files / icadkit-0.3.7-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL icadkit-0.3.7-cp310-abi3-manylinux_2_28_x86_64.whl
Size 949.4 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
792d81bc3511aa8b79fb3eb7e965070faaaeaef8b60df7ab11491c92dd36c444
BLAKE2b-256 checksum
How to use checksums
a1bd8790a2dcc75259e8934fb7178a51fd21aa111ccccdd344ab1bb969277a00
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 Oct 7, 2026.

Transparency log

Release files / icadkit-0.3.7-cp310-abi3-macosx_11_0_arm64.whl

Download URL icadkit-0.3.7-cp310-abi3-macosx_11_0_arm64.whl
Size 862.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bd73d0c221d78b8a80dc91b7fb86c6fba931fd2786f54a44ecc052b3b1681288
BLAKE2b-256 checksum
How to use checksums
f2d98bcd8e8cc7a85830c268749e887275f8e46abf2edba1d7e5ee7b21a146b5
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 Oct 7, 2026.

Transparency log

Security for icadkit 0.3.7

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 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for icadkit-0.3.7.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 Oct 7, 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.

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