Metadata-Version: 2.4
Name: inventor-kit
Version: 0.11.5
Requires-Dist: cq-acis>=0.4.3,<0.5
Requires-Dist: cq-acis[cadquery]>=0.4.3,<0.5 ; extra == 'cadquery'
Requires-Dist: cq-acis[occt]>=0.4.3,<0.5 ; extra == 'occt'
Requires-Dist: jsonschema>=4.23,<5 ; extra == 'oracle'
Requires-Dist: pywin32 ; sys_platform == 'win32' and extra == 'oracle'
Requires-Dist: jsonschema>=4.23,<5 ; extra == 'validation'
Requires-Dist: olefile==0.46 ; extra == 'validation'
Requires-Dist: pillow>=10,<13 ; extra == 'validation'
Requires-Dist: zstandard>=0.23,<1 ; extra == 'validation'
Requires-Dist: ocp-tessellate==3.5.1 ; extra == 'viewer'
Requires-Dist: cq-acis[cadquery]>=0.4.3,<0.5 ; extra == 'viewer'
Provides-Extra: cadquery
Provides-Extra: occt
Provides-Extra: oracle
Provides-Extra: validation
Provides-Extra: viewer
License-File: LICENSE
License-File: COMMERCIAL-LICENSE.md
License-File: THIRD_PARTY_NOTICES.md
License-File: licenses/CC-BY-4.0.txt
License-File: licenses/cadmpeg-Apache-2.0.txt
License-File: licenses/cq-acis-MIT.txt
License-File: licenses/crc32fast-MIT.txt
License-File: licenses/encoding_rs-COPYRIGHT.txt
License-File: licenses/encoding_rs-MIT.txt
License-File: licenses/encoding_rs-WHATWG.txt
License-File: licenses/ezdxf-MIT.txt
License-File: licenses/inventor-kit-legacy-MIT.txt
License-File: licenses/rust-dependencies.txt
License-File: licenses/sha2-dependencies-MIT.txt
License-File: licenses/PolyForm-Noncommercial-1.0.0.md
License-File: licenses/rust-dependencies.json
Summary: Read Inventor files and write bounded IPT parts and flat IAM assemblies without Inventor
Maintainer: UnRobotics Inc.
License-Expression: PolyForm-Noncommercial-1.0.0 AND MIT AND Apache-2.0 AND BSD-3-Clause AND CC-BY-4.0 AND Zlib
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Commercial, https://www.un-robotics.com/#contact
Project-URL: Licensing, https://github.com/monozukuri-ai/inventor-kit/blob/main/docs/license.md
Project-URL: Repository, https://github.com/monozukuri-ai/inventor-kit

# inventor-kit

English | [日本語](README.ja.md)

Read Autodesk Inventor document metadata and saved part geometry with a Rust
parser and a Python API. Supported geometry can be converted to
`cq_acis.AcisModel` and CadQuery objects. Runtime use does not require network
access, Inventor, Windows, or user-provided schemas.

```text
IPT → CFB / RSe → saved SAB / ASM → acis-core → AcisModel → CadQuery
IAM → saved references and placements → local part resolution → CadQuery Assembly
```

The parser supports a limited set of validated format profiles. It does not
determine the current Model State, reevaluate feature history, or compute its
own approximations of unsupported geometry. A B-spline fit that the file
stores beside a procedural curve or surface is used as derived geometry and
reported as a warning; see [body conversion](docs/body-conversion.md).

Open an IDW in the Viewer to see its saved sheets, or export a sheet as SVG.
Drawing support is experimental and partial. Physical scale and fidelity to
Inventor's rendering are unverified. See the [drawing guide](docs/drawing.md).

## Installation

Requires Python 3.11 or later, `cq-acis>=0.4.3,<0.5`, and shared model API 2.
`pip install inventor-kit` installs the parser and shared model. For shape
conversion, choose one backend. The two extras install different builds of
the same `OCP` module.

```sh
python -m pip install 'inventor-kit[cadquery]'  # CadQuery shapes, STEP export, IAM, writers
python -m pip install 'inventor-kit[occt]'      # OCCT shapes only, without CadQuery
```

Source builds use Rust 1.93, maturin, and `acis-core` / `acis-py-bridge` 0.4.3
from crates.io. See the [development guide](docs/development.md) and
[release requirements](docs/releasing.md).

## Reading parts

```python
import inventor_kit as ik
import cadquery as cq

doc = ik.read_file("part.ipt")
print(doc.summary["status"], doc.summary["diagnostics"])
if doc.model is not None:
    shape = doc.to_cadquery()  # Raises for unsupported surfaces, trims, etc.
    cq.exporters.export(shape, "part.step")
```

For metadata alone, use `inspect_file`, which does not import the Python geometry
modules.

```python
info = ik.inspect_file("part.ipt").metadata
for prop in info.find_properties(semantic_name="part_number"):
    print(prop.value, prop.source.stream, prop.state_binding)
```

```sh
python -m inventor_kit part.ipt
python -m inventor_kit part.ipt --step part.step
python -m inventor_kit drawing.idw --metadata-only
python -m inventor_kit part.ipt --list-candidates
```

For local visual inspection of parts and saved assemblies, install the optional [viewer](docs/viewer.md).

```sh
python -m pip install 'inventor-kit[viewer]'
python -m inventor_kit.viewer part.ipt
```

![Inventor Kit viewer displaying the NIST CTC 03 model](https://raw.githubusercontent.com/monozukuri-ai/inventor-kit/main/assets/viewer.png)

Model: [NIST CTC 03](https://www.nist.gov/ctl/smart-connected-systems-division/smart-connected-manufacturing-systems-group/mbe-pmi-0) (saved geometry).

## Reading assemblies

```python
assembly = ik.read_assembly_file("assembly.iam", search_roots=["parts"])
converted = assembly.to_cadquery(allow_unverified_state=True, allow_partial=True)
print(converted.omissions, converted.reference_issues)
report = converted.export_step("assembly.step", allow_partial=True)
```

Using saved placements requires explicit opt-in. Missing parts and unsupported
geometry remain recorded in the result. Because the current state is unverified,
`complete` is `False`. Assembly STEP export refuses to overwrite existing files
and writes provenance and omission details to an accompanying JSON report.

## Limits and supported scope

```python
limits = ik.Limits(max_file_bytes=32 * 1024 * 1024, max_candidates=16)
doc = ik.read_file("part.ipt", limits=limits)
print(ik.capabilities())
```

Limits can be lowered per document. They do not guarantee bounds on process
memory, runtime, or OCCT computation. See the [API guide](docs/api.md) for defaults,
diagnostics, and saved candidate selection.

| Guide | Contents |
| --- | --- |
| [Supported scope](docs/support.md) | Format profiles and geometry, state, and assembly limitations |
| [API](docs/api.md) | Metadata, saved candidates, units, reference resolution, and limits |
| [CLI](docs/cli.md) | IPT/IAM batch conversion and IDW sheet reports |
| [Validation](docs/validation.md) | Regression and holdout checks, comparison evidence, and completed validation |
| [Development](docs/development.md) | Builds, tests, fuzzing, and public directory roles |
| [Experimental part writer](docs/part-writer.md) | Standalone IPTs from CadQuery or STEP |
| [Releasing](docs/releasing.md) | Wheels, sdists, CI, and publication requirements |
| [Changelog](CHANGELOG.md) | Unreleased changes and release notes |
| [Format references](docs/format-reference.md) | Implementation references and licenses |

To bundle authored IPTs into an IAM, see the [assembly writer](docs/assembly-writer.md): `new_assembly` and `write-assembly`. Select Inventor 2026 or 2027 with `target_year` (API) or `--target-year` (CLI); 2027 remains the default. Both bounded profiles passed native open/save/reopen and moved-bundle qualification.

Public samples are validated against pinned hashes and sources; the CAD files
themselves are excluded from distribution packages.

## License

The current inventor-kit distribution is source-available under
**[PolyForm Noncommercial 1.0.0](licenses/PolyForm-Noncommercial-1.0.0.md)**.
For use outside PolyForm's permissions, UnRobotics Inc. offers separate
[commercial licenses](COMMERCIAL-LICENSE.md).
See [licensing details](docs/license.md) for scope, earlier MIT permissions,
and third-party license conditions.

Required Notice: inventor-kit is licensed by UnRobotics Inc. (https://www.un-robotics.com/).

Required Notice: This inventor-kit release is offered under PolyForm Noncommercial 1.0.0 or a separate commercial agreement; earlier MIT permissions and third-party terms remain in effect.

