Skip to main content

A Python tool for converting IFC (Industry Foundation Classes) files to IDA (Indoor Database ASCII) compatible formats

Project description

IFC2IDA

PyPI Version

License: MIT

A Python package for converting IFC (Industry Foundation Classes) files to IDA (Indoor Database ASCII) compatible formats, designed for BIM (Building Information Modeling) data analysis workflows.

Features

  • IFC Parsing: Extract geometric and semantic data from IFC files using ifcopenshell.

  • Data Transformation: Convert IFC entities into structured formats (e.g., CSV, JSON, Parquet) for analysis.

  • Customizable Pipelines: Define rules to map IFC properties to IDA-compatible schemas.

  • CLI Support: Command-line interface for batch processing.

Installation

pip install ifc2ida

For development dependencies:

pip install ifc2ida[dev]

Usage

Basic Conversion

from ifc2ida import convert



# Convert IFC to CSV

convert.ifc_to_csv("input.ifc", "output.csv")



# Convert IFC to Parquet

convert.ifc_to_parquet("input.ifc", "output.parquet")

Command Line Interface

ifc2ida --input model.ifc --output data.csv --format csv

Custom Schema Mapping

Create a JSON configuration file (schema_config.json):

{

  "Walls": {

    "attributes": ["Name", "Volume", "Material"],

    "filters": {"ClassName": "IfcWall"}

  }

}

Then run:

from ifc2ida import CustomConverter



converter = CustomConverter("schema_config.json")

converter.convert("input.ifc", "output.parquet")

Documentation

Full documentation available at GitHub Wiki.

Contributing

  1. Fork the repository.

  2. Create a feature branch (git checkout -b feature/your-feature).

  3. Commit changes (git commit -am 'Add some feature').

  4. Push to the branch (git push origin feature/your-feature).

  5. Open a Pull Request.

License

MIT License. See LICENSE for details.

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

ifc2ida-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file ifc2ida-0.1.1.tar.gz.

File metadata

  • Download URL: ifc2ida-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ifc2ida-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22bcebf975c3821306ca62d52834973a5ec224cfc0e43e137de0469e8e3b8df2
MD5 a353110dd202c6a789880cf26650e6bc
BLAKE2b-256 0118edf5ce178037675bb54fc65c29885ef18c5031f34d6b26838eb35da930d8

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