Skip to main content

A tool for extracting data from Revit ACC

Project description

Description

The project simplifies data extraction from Revit model in ACC using the Model Derivative API. Leveraging powerful Python libraries, it enables efficient visualization and analysis of Revit data. The api released long time but quite complex and hard to use, this is library to help you access with easier way.

Installation

pip install revit_meows --upgrade

Requirements

  • Python 3.9+

  • Setting Environment Variables, see Tutorial Create an App

APS_CLIENT_PKCE_ID=your_client_id
APS_CLIENT_ID=your_client_id
APS_CLIENT_SECRET=your_client_secret

Simple Usage

  • Get All Categories
from revit_meows import APSRevit
from aps_toolkit import Auth

token = Auth().auth3leg()
urn = "<urn of item version>"
revit_meows = APSRevit(urn, token)
categories = revit_meows.get_all_categories()
print(categories)
  • Export All Revit Data To CSV
from revit_meows import APSRevit
from aps_toolkit import Auth

token = Auth().auth3leg()
urn = "<urn of item version>"
revit_meows = APSRevit(urn, token, region="US")
df = revit_meows.get_all_data()
df.to_csv("revit_data.csv")
  • Export All Data Include Boundingbox To CSV
from revit_meows import APSRevit
from aps_toolkit import Auth

token = Auth().auth3leg()
urn = "<urn of item version>"
revit_meows = APSRevit(urn, token, region="US")
df = revit_meows.get_all_data_bbox(project_id="<project_id>", 
                                   model_guid="<model_guid>", 
                                   is_field_param=False,
                                   is_include_category=True)
df.to_csv("revit_data_bbox.csv")

Explore more in the Examples.

Features

  • Get All Revit Categories
  • Get Revit Data By Categories
  • Get All Revit Data From Model In ACC
  • Get Bounding Box of Revit Element data

Development Usage

pip install -e .

License

This project is licensed under the Apache License - see the LICENSE file for details.

Contributing

This is project just research in my free time and don't have any power to keep it up to date. If you want to contribute, please feel free to fork and submit a pull request.

Learning Resources

Q&A

How can I get URN input?
  1. You can use aps-toolkit library to get URN of the item latest version.
from aps_toolkit import *

token = Auth().auth2leg()
bim360 = BIM360(token)
urn = bim360.get_latest_derivative_urn("<project_id>", "<folder_id>")
  1. You can batch report urn to dataframe from BIM360 class in aps-toolkit library.
from aps_toolkit import BIM360
from aps_toolkit import Auth

token = Auth().auth3leg()
bim360 = BIM360(token)
df = bim360.batch_report_items("<project_id>", "<folder_id>", ['.rvt'], is_sub_folder=False)
What is Meows? Oh, my girlfriend told me the cat is so cute, Meows is the sound of the cat. So, I named it.

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_meows-0.1.4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

revit_meows-0.1.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file revit_meows-0.1.4.tar.gz.

File metadata

  • Download URL: revit_meows-0.1.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for revit_meows-0.1.4.tar.gz
Algorithm Hash digest
SHA256 133d1f767599cabf4557af59fecc3e0bbb41cfd6fa27fb3eec5bd0eb8853769d
MD5 217ea484d14a6b6712c4f356aeb8b4f2
BLAKE2b-256 681bcf278da14211fbdbf9e7e834bded0006333bd54a4c55944a4e453632c2a3

See more details on using hashes here.

File details

Details for the file revit_meows-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: revit_meows-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for revit_meows-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 67a2acc3ea204418e070f70a7a2dac7dda20343cc119f5a6c5fdcf25e930463d
MD5 c086d28bea8166aa62bbfce7ba8d5ced
BLAKE2b-256 1fb17023e7b73fc7950ac2a4b4761ccd9a693eed3f29d7c2b9c0dd33ae7ae5f4

See more details on using hashes here.

Supported by

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