A Library allow extract revit without open revit
Project description
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.
How to use
- Install the library by using pip:
pip install revit-extractor --upgrade
- 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)
- 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 ???
References
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file revit-extractor-0.1.1.tar.gz
.
File metadata
- Download URL: revit-extractor-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0025f12ecc197afa1d0105826f69b85c19a70fccd8568106d840caac3914a2cb |
|
MD5 | cd32fa8a5064f013286d547bc3e03de2 |
|
BLAKE2b-256 | 7994b8f99c51965e5631a89c7e06d66a36e80b3b6318652936245f2b71e77251 |
File details
Details for the file revit_extractor-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: revit_extractor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c34f8bc600540bd18989d0237ed0efc9982dae56d2fa1cae254658dc7d16a1 |
|
MD5 | 7388fc1c19a59e57ab5d165facd8f9fb |
|
BLAKE2b-256 | 1e90f644337faea2b1882db3944a04e0caf29b87e674e82610d4bdb840e7cbd4 |