Skip to main content

A Library allow extract revit without open revit

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revit-extractor-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

revit_extractor-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file revit-extractor-0.1.2.tar.gz.

File metadata

  • Download URL: revit-extractor-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for revit-extractor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6933cc2c7df76130b12028df6e6c5c5ae0338e7215bb8e5bf46e855f518438b4
MD5 0066de897af6e263e610a40cb6e604bc
BLAKE2b-256 38c424bd05f162858dd4719c4d1bead001679d57e80ae9ceed89901ee3ab3183

See more details on using hashes here.

File details

Details for the file revit_extractor-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for revit_extractor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a918c1c721f88ba2d3957848d4518e0ee009491fe8d1fc7887dfb8b179cf3980
MD5 857b606b7bbaa37fa3276a44a5b2adab
BLAKE2b-256 434f26a3081f60b099ce39d0818fce76d202d65324b3ab5d6df29c538b9b872e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page