Skip to main content

Platform License: GNU v3

PyPI PyPI - Downloads

follow on Twitter

Revit Extractor

Revit Extractor is a library that allows you to export native data from Revit files without needing to open Revit. It’s particularly useful for extracting data from Revit files and integrating it into other systems.

Requirements

  • Make sure you have Revit installed on your machine.
  • Make sure you have Python installed on your machine version 3.9 or later.
  • Make sure you are running on Windows Platform. MacOS and Linux are not supported.

How to use

  1. Install the library by using pip:
pip install revit-extractor --upgrade
  1. Get Revit Version
from revit_extract import RevitExtractor
rvt_path = r"D:\_WIP\Download\Sample Office Building Model V1.rvt"
version = RevitExtractor.get_version(rvt_path)
print(version)
  1. Use the library in your code:
  • Extract all categories from Revit file:
from revit_extract import RevitExtractor
rvt_path = r"D:\_WIP\Download\Sample Office Building Model V1.rvt"
prodb = RevitExtractor(rvt_path).read_prob_data()
categories = prodb.get_all_categories()
for key in categories:
    print(key, categories[key])
  • Extract data by categories and parameters from Revit file:
from revit_extract import RevitExtractor
rvt_path = r"D:\_WIP\Download\Sample Office Building Model V1.rvt"
prodb = RevitExtractor(rvt_path).read_prob_data()
categories =["Walls", "Doors"]
params = ["Name", "Type", "Level"]
data_frame = prodb.get_data_by_categories_and_params(categories, params)
data_frame.to_excel("output.xlsx", index=False)

More ???

Limitation

  • Export Schedule table data is not supported with svf format.

  • Geometry data is limit supported to read at the moment (But can export and use APS-Toolkit)

Disclaimer

This is not an official Autodesk product to support for Autodesk Platform Services. Use it at your own risk.

I'm not responsible for any data loss or any other issues caused by using this library, some features need require cost for using. Please read carefully the Autodesk Forge and Autodesk Platform Services terms of use. I'm just doing, testing , maintaining in free time, so feel free to contribute and make it better.

License

This project is licensed under the GNU v3 License - see the LICENSE file for details

References

Metadata

Release files for revit-extractor 0.1.2

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

Source distribution (sdist)

Source distribution for revit-extractor 0.1.2
File Size Uploaded
revit-extractor-0.1.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for revit-extractor 0.1.2
File Interpreter ABI Platform
revit_extractor-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / revit-extractor-0.1.2.tar.gz

Download URL revit-extractor-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6933cc2c7df76130b12028df6e6c5c5ae0338e7215bb8e5bf46e855f518438b4
BLAKE2b-256 checksum
How to use checksums
38c424bd05f162858dd4719c4d1bead001679d57e80ae9ceed89901ee3ab3183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / revit_extractor-0.1.2-py3-none-any.whl

Download URL revit_extractor-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a918c1c721f88ba2d3957848d4518e0ee009491fe8d1fc7887dfb8b179cf3980
BLAKE2b-256 checksum
How to use checksums
434f26a3081f60b099ce39d0818fce76d202d65324b3ab5d6df29c538b9b872e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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