Skip to content

JiyaMehta-6/BarPlanCE

Repository files navigation

BarPlanCE 🏗️

Bar Cutting & Optimization Tool for Civil Engineers

Why BarPlanCE exists (and why it matters)

Reinforcement steel typically accounts for 15–25% of total RCC construction cost, which can be ₹7–12 lakh for a mid-sized building. Industry studies and site audits consistently show that 3–7% of reinforcement steel is lost as cutting waste, translating to ₹30,000–70,000 due to poor planning, manual estimation, or ad-hoc bar cutting on site. On a mid-sized project, that wastage alone can mean:

  • several tonnes of steel lost
  • cost overruns running into lakhs
  • re-order delays and site inefficiencies

Most sites still rely on Excel sheets and manual judgment to decide how bars are cut from standard lengths. Excel is excellent for quantities, but terrible at combinatorial optimization.

BarPlanCE solves exactly this gap.

Screenshot 2026-01-18 082726

It takes raw cut requirements and produces an optimized bar cutting plan that:

  • minimizes wastage
  • shows exactly how each bar is cut
  • gives visual clarity suitable for site execution

This is not academic optimization. This is construction-grade practicality.


What BarPlanCE does

BarPlanCE is a desktop application for:

  • reinforcement bar cutting optimization
  • BBS-support planning
  • fabrication and site execution clarity

It converts cut requirements into:

  • optimized bar usage
  • per-bar cut breakdown
  • per-bar wasted length
  • visual bar diagrams for quick understanding

✨ Key Features

  • 📐 Bar Cut Optimization Uses exact combinations for small datasets and fast heuristics for large datasets.

  • 📊 Visual Bar Representation Color-coded graphical bars showing individual cuts.

  • 📉 Automatic Wastage Calculation Unused length per bar is calculated and displayed.

  • 📂Flexible Input

Screenshot 2026-01-18 082751
  • Also the size of sourced BAR can be change, usually which is 6000/1200 depending on type od REBAR

    • Manual entry Screenshot 2026-01-18 070845

    • CSV import

    • Excel (.xlsx) import

  • 📤 Export Ready

    • CSV
    • Excel (.xlsx)
  • Progress Feedback Clear progress indication during optimization.

  • 🧠 Fail-Safe Logic Large inputs automatically switch to efficient heuristic mode to avoid freezes.

Also, equipped with real-time feedback through dialog boxes, confirming successful data loads or alerting users to errors. This ensures engineers always know the status of their input, optimization, and exports.

Screenshot 2026-01-18 072659 Screenshot 2026-01-18 065914 Screenshot 2026-01-18 070408 Screenshot 2026-01-18 073245 Screenshot 2026-01-18 071133

🧩 Typical Use Cases

  • Reinforcement planning on site
  • Bar Bending Schedule (BBS) preparation
  • Steel wastage reduction
  • Fabrication yard cutting plans
  • Cross-checking contractor cutting logic

Designed specifically for civil engineers, site engineers, and planning engineers.


🖥️ Technology Stack

  • Python 3
  • PySide6 – Desktop GUI
  • pandas – Data handling
  • openpyxl – Excel file support

All dependencies are free and open-source.


📥 Installation (using uv)

This project uses uv, a fast modern Python package manager.

1. Install uv (once)

pip install uv

2. Clone the repository

git clone https://github.com/your-username/BarPlanCE.git
cd BarPlanCE

3. Create environment & install dependencies

uv init
uv add pyside6 pandas openpyxl

4. Run the application

uv run gui.py

📄 Input Format

Manual Input

1200, 3
800
450, 2

CSV / Excel Format

Length Quantity
1200 3
800 1
450 2

Notes:

  • Lengths are automatically rounded up
  • Quantity defaults to 1 if omitted

📊 Output

For each standard bar:

  • list of cut lengths
  • graphical bar visualization
  • wasted (unused) length

Exports are Excel-friendly and suitable for:

  • site sharing
  • contractor instructions
  • records and audits

🚧 Known Constraints

  • Large datasets use heuristic optimization for speed
  • Cutting loss (kerf) not yet included
  • Metric units assumed

🔮 Planned Enhancements

  • Cutting loss allowance
  • Steel weight calculations
  • BBS summary tables
  • PDF export
  • IS / ASTM bar presets

📜 License

MIT License Free for personal, academic, and commercial use.


👷 Philosophy

BarPlanCE is built on a simple belief:

Steel is expensive. Wastage is preventable. Planning should be visual and precise.

If this tool saves even 1% steel on one project, it has already paid for itself many times over.

About

BarPlanCE : Bar Cutting & Optimization Tool for Civil Engineers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages