Skip to main content

alibrex package

PyPI version Python versions

alibrex is a Python wrapper for the Alibre Design V29+ AlibreX automation API. The native AlibreX is a COM interface exposed to .NET alibrex turns it into a typed, idiomatic Python module.

Features

  • Full IDE support. Every interface, enum, and method is declared in PEP 561 type stubs — autocomplete, hover docs, and type-checking work out of the box in VS Code, PyCharm, or any pyright/Pylance-aware editor.
  • Single namespace. Everything is at the top level: CurrentPart(), CurrentAssembly(), connect(), plus ~280 typed AlibreX interfaces and enums.
  • Example and demo driven. The repository includes Jupyter notebooks, plus dozens of test scripts, demos and reference utilities.

Installation

From PYPI

alibrex

What's in this repository

Folder Description
notebooks/ Jupyter tutorial sequence (00–11) plus topic references (connecting, cleanup, 2D/3D sketches, parameters, configurations, property reading, PDM)
demo/ Self-verifying scripts — feature CRUD, sketch / assembly constraints, parameters, configurations, events, profile library
demo/muffler/ Bundled multi-part industrial assembly used by the asm_* and crud_13..18* demos
demo/profiles/ Profile library (steel, wood, threads, pipe) consumed by the prof_* demos
demo/cad-files/ Reference CAD artifacts referenced by the demos
examples/ Demonstration scripts — numbered intro 00..27, plus the subfolders below
examples/advanced/ Reference geometry, 2D/3D sketch showcases, import/export utilities
examples/advanced/py/ Python implementations
examples/advanced/md/ Companion markdown originals for each script
examples/ported/ Ports of the official AlibreScript samples
examples/ported/library/ Standalone utilities (gear generator, STL exporter, equation sketcher, etc.)
examples/probes/ Property-probe reports for the major object types
examples/pdm/ PDM (Product Data Management) walk-through — 13 progressive scripts: connect → safes → property defs / classes / templates → projects / libraries / folder tree → file properties + version history → locked-file scan, session ↔ PDM cross-ref, full Program.cs port
examples/_sample_files/ Sample .AD_PRT / .AD_ASM materialized on first use by file-loading examples

Requirements

  • Windows + a licensed installation of Alibre Design (V29 or newer)
  • Old versions of Alibre Design may work, but are not tested
  • Python 3.9–3.13
  • pythonnet>=3.0,<4 (installed automatically)

AlibreX.dll is not redistributed at import time alibrex locates it by checking, in order, the $ALIBREX_DLL env var, the Windows registry (AlibreX.AutomationHook COM ProgID, then HKLM\SOFTWARE\Alibre, Inc.\Alibre Design\…\HomeDirectory), and finally a %ProgramFiles%\Alibre Design*\Program\AlibreX.dll

see notebooks/diagnose_setup.ipynb to inspect what each source returns on your machine.

Quick start

Open Alibre Design and any part document, then:

from alibrex import CurrentPart

part = CurrentPart()
print(part.Name, part.FeatureCount, part.Bodies.Count)

See notebooks/00_hello.ipynb and notebooks/connect_methods.ipynb to get oriented.

License

MIT.

Release files for alibrex 1.0.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 alibrex 1.0.0
File Size Uploaded
alibrex-1.0.0.tar.gz 52.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alibrex 1.0.0
File Interpreter ABI Platform
alibrex-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 109.2 kB

Release files / alibrex-1.0.0.tar.gz

Download URL alibrex-1.0.0.tar.gz
Size 52.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5c99d2c7260cad4bc9b9a944b9858121522d5130aedae2877c31ce06e75bcdf1
BLAKE2b-256 checksum
How to use checksums
2f80c370bed6a9fc219ddf427b90f142e5a61e5312ea19963953cfa4d6f851d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / alibrex-1.0.0-py3-none-any.whl

Download URL alibrex-1.0.0-py3-none-any.whl
Size 57.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c05208c1d27aca4ba9662385f7a30e8e728d91d006975c752c9104063bba0ea1
BLAKE2b-256 checksum
How to use checksums
83e282e69d387d5ea3d3cdf6f75b4645441aaa1a51e161c913a472f87ece8d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release 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