cad3d-ir-inventor
cad3d-ir-inventor imports Autodesk Inventor parts (.ipt) into cad3d-ir
through inventor-kit. It
takes the B-Rep table the part stores, converts each body into an exact OCCT
solid (convert_bodies(backend="occt"), millimetres) and writes one glTF
binary with the same conventions as the STEP adapter. Because the solids are
exact B-Rep, the same part can be written as a STEP assembly (export_step).
What the adapter does not do:
- It reads the stored table as it is. Whether that table is the model state
Inventor shows (suppressed features, other model states) is not established
(
INVENTOR_STATE_UNVERIFIED); nothing is recomputed from the feature history. - Appearances are not read; bodies use the default colour.
- Assemblies (
.iam), drawings (.idw) and presentations (.ipn) are identified and reported (INVENTOR_KIND_UNSUPPORTED), not converted. - Curves and surfaces Inventor defines by a procedure (intersections, blends,
offsets) are represented by the B-spline fits it stored with them, within
the stored fit tolerance (
INVENTOR_APPROXIMATED_GEOMETRY). Geometry without a stored fit, such as helical thread surfaces, leaves its body out (INVENTOR_BODY_UNSUPPORTED). - Save generations inventor-kit does not read fail closed
(
INVENTOR_SEGMENT_MAJOR_UNSUPPORTED). A generation it frames like its verified neighbours is read with a warning (INVENTOR_PROFILE_CANDIDATE).
The distribution depends on cad3d-ir, cad3d-ir-step (tessellation and the
STEP writer) and inventor-kit[occt]; the core distribution does not depend on
this adapter. inventor-kit needs Python 3.11 or later: on Python 3.10 the
package installs without it and reading raises InventorImportError.
Usage
from pathlib import Path
from cad3d_ir import DirectoryResourceWriter
from cad3d_ir.importers import ImportOptions
from cad3d_ir_inventor import InventorImporter, export_step
result = InventorImporter().import_file(
Path("part.ipt"),
options=ImportOptions(
strict=False, include_visualization_mesh=True, include_brep=False
),
resources=DirectoryResourceWriter("converted"),
)
print(result.statistics["bodies_converted"], result.statistics["triangles"])
for item in result.diagnostics:
print(item.code, item.message)
export_step(Path("part.ipt"), Path("part.step"), schema="AP214")
cad3d-ir-inventor part.ipt converted --step part.step
read_source returns the document and its conversion once, so one read can
feed both map_source and export_step.
Package layout
- One
partProductDefinitionfor the file with oneConfiguration(Stored state) that lists every converted body. A part has no occurrences. - One
Bodyper converted body, namedBody_<index>after its place in the stored table, with abreprepresentation wheninclude_brepis set (one OCCT BREP resource per body;approximatewhen stored fits stand in). - One package
Visualization(GLB, millimetres, Z up): one glTF node and one mesh per body. - The preview image the document stores, when it has one, as a resource with
properties.role == "preview-image";metadata.preview_resource_idnames it. It is written even when no body converts, so a caller can show it. - The source document's properties carry the segment major, the save version,
the Inventor release derived from the major, and the iProperties
inventor-kit names (
part_number,title, ...).
Diagnostics
| Code | Meaning |
|---|---|
INVENTOR_EXACT_BREP |
Geometry is the B-Rep the part stores, converted to OCCT (info) |
INVENTOR_STATE_UNVERIFIED |
The stored table is shown; the current model state is not established (info) |
INVENTOR_APPEARANCE_NOT_READ |
Appearances are not read; default colour (info) |
INVENTOR_APPROXIMATED_GEOMETRY |
Stored B-spline fits stand in for procedural curves and surfaces (info) |
INVENTOR_BODY_SHEET |
Bodies whose faces do not close a volume are left out (info) |
INVENTOR_PROFILE_CANDIDATE |
The save generation is read as a candidate |
INVENTOR_BODY_UNSUPPORTED |
Bodies with geometry that is not converted, with reasons |
INVENTOR_BODY_FAILED |
Bodies that could not be built, with reasons |
INVENTOR_MESH_FAILED |
Bodies that could not be tessellated |
INVENTOR_PREVIEW_ONLY |
No shape can be displayed; the stored preview image is available |
INVENTOR_NO_GEOMETRY |
No body yielded a displayable shape (error) |
INVENTOR_GEOMETRY_UNAVAILABLE |
The stored B-Rep could not be extracted (error) |
INVENTOR_SEGMENT_MAJOR_UNSUPPORTED |
The save generation is outside those inventor-kit reads (error) |
INVENTOR_KIND_UNSUPPORTED |
The document is an assembly, drawing or presentation (error) |
INVENTOR_CONVERSION_FAILED |
The bodies could not be converted to OCCT (error) |
INVENTOR_KERNEL_MISSING |
inventor-kit's occt extra is not installed (error) |
INVENTOR_LIMIT |
inventor-kit stopped at a resource limit (error) |
INVENTOR_READ_FAILED |
The document could not be read (error) |
statistics carries the segment major, save version and release, whether the
generation is a candidate, body counts by outcome (bodies_converted,
bodies_open_shell, bodies_unsupported, bodies_failed), the reasons by
geometry subtype, the counts of approximated curves and surfaces with the
largest fit tolerance, triangle counts and the read and conversion times, so a
caller can show what was and was not read.
License
PolyForm Noncommercial 1.0.0, following inventor-kit; see LICENSE. Separate commercial licenses are available from UnRobotics Inc. Autodesk and Inventor are trademarks of Autodesk, Inc.; this adapter ships no Autodesk software.
Metadata
Release files for cad3d-ir-inventor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cad3d_ir_inventor-0.1.1.tar.gz | 99.4 kB | Without provenance | Details for cad3d_ir_inventor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cad3d_ir_inventor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cad3d_ir_inventor-0.1.1-py3-none-any.whl |
Total release size: 122.2 kB
Release files / cad3d_ir_inventor-0.1.1.tar.gz
| Download URL | cad3d_ir_inventor-0.1.1.tar.gz |
|---|---|
| Size | 99.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c5a422a555abb9b9e64b289a31ac4e5c1ce2636f0e339dcc5fac342546f1b62
|
|
BLAKE2b-256 checksum How to use checksums |
997d17684a3384439d6843d2083985f050ae66bebe44c9859a7f3cb97e12af91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cad3d_ir_inventor-0.1.1-py3-none-any.whl
| Download URL | cad3d_ir_inventor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1868bb058c322288d262012a76df33f8cf56f26e9fa7eb037b66b5bc046ba302
|
|
BLAKE2b-256 checksum How to use checksums |
de258ff17aac0ed9e7698ed413c18d894adcc21eb874eb9b239c2093d6230370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for cad3d-ir-inventor 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.