Skip to content
VartmorPublic

About

CADLift is a open source project that converts your prompts, images, 2D DWG/DXF drawings into production-ready 3D geometry compatible with AutoCAD, FreeCAD, Blender, Unity, and more.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ CADLift – Transform Anything Into 3D

From CAD files to images to text prompts β€” CADLift uses AI to generate production-ready 3D models in seconds.

Status Python React License

🎯 Live Demo Β· πŸ“– Docs Β· πŸ› Report Bug

🌍 Türkçe | English


✨ Three Ways to Create 3D

πŸ—οΈ CAD Files πŸ–ΌοΈ Images πŸ’¬ Text Prompts
Upload DWG or DXF Upload any image Describe what you want
Auto-detect layers AI-powered reconstruction Stable Diffusion + TripoSR
Extrude to 3D TripoSR AI model Generate from imagination

🎯 What Makes CADLift Special

πŸ—οΈ DWG/DXF to 3D

  • DWG Support – Native AutoCAD files via ODA File Converter
  • DXF Support – All versions, all layers
  • Smart Detection – Auto-detects closed shapes, walls, doors, windows
  • co2tools Integration – Robust extrusion engine

πŸ–ΌοΈ Image to 3D

  • Any Image – Photos, sketches, renders, screenshots
  • TripoSR AI – State-of-the-art single-image 3D reconstruction
  • Background Removal – Automatic subject isolation

πŸ’¬ Prompt to 3D

  • Natural Language – Just describe what you want
  • Stable Diffusion – AI-generated reference images
  • End-to-End – From text to viewable 3D model

πŸ“¦ Multi-Format Export

Format Use Case
GLB Web 3D, game engines (Unity, Unreal, Three.js)
STL 3D printing (Cura, PrusaSlicer)
DXF CAD software (AutoCAD, FreeCAD)
STEP Engineering CAD (SolidWorks, Fusion 360)

🎨 Built-in 3D Viewer

  • Instant Preview – View models in browser before download
  • Interactive – Rotate, zoom, pan
  • Online3DViewer – Industry-standard GLB support

⚑ Real-Time Progress

  • Live Updates – Watch conversion progress in real-time
  • Status Tracking – Detailed stage-by-stage feedback

πŸ› οΈ Tech Stack

Layer Technologies
Frontend React 18, TypeScript, Tailwind CSS, Vite
Backend FastAPI, Python 3.11+, SQLAlchemy, Celery
AI Models Stable Diffusion, TripoSR, OpenAI (optional)
CAD Tools ezdxf, co2tools, ODA Converter, trimesh, SolidPython
Storage Local filesystem, PostgreSQL/SQLite

⚠️ Local-Only Features

Some features require local installation due to GPU requirements:

Feature Requirement Cloud Available
DWG/DXF to 3D ODA Converter βœ…
Prompt to 3D (Precision) OpenAI API βœ…
Prompt to 3D (Creative) TripoSR + SD ❌ Local only
Image to 3D TripoSR ❌ Local only

Note: For GPU-powered features, please run CADLift locally.


πŸš€ Quick Start

Prerequisites

Backend Setup

cd backend
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e .
alembic upgrade head
uvicorn app.main:app --reload

Frontend Setup

npm install
npm run dev

Environment Variables

Create backend/.env:

DATABASE_URL=sqlite+aiosqlite:///./cadlift.db
STORAGE_PATH=./storage
JWT_SECRET_KEY=your-secret-key
ENABLE_TASK_QUEUE=false
LOG_LEVEL=INFO

πŸ“‹ API Examples

Upload DWG/DXF

curl -X POST "http://localhost:8000/api/v1/jobs" \
  -F "upload=@building.dwg" \
  -F "job_type=cad" \
  -F "mode=cad" \
  -F 'params={"extrude_height": 3000}'

Image to 3D

curl -X POST "http://localhost:8000/api/v1/jobs" \
  -F "upload=@photo.jpg" \
  -F "job_type=image" \
  -F "mode=3d"

Prompt to 3D

curl -X POST "http://localhost:8000/api/v1/jobs" \
  -F "job_type=prompt" \
  -F "mode=3d" \
  -F 'params={"prompt": "a modern glass office building"}'

πŸ“ Project Structure

cadlift/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/           # FastAPI routes
β”‚   β”‚   β”œβ”€β”€ pipelines/     # CAD, Image, Prompt processing
β”‚   β”‚   β”œβ”€β”€ services/      # co2tools, ODA converter, storage
β”‚   β”‚   └── models/        # Database models
β”‚   └── docs/              # API documentation
β”œβ”€β”€ components/            # React components
β”œβ”€β”€ pages/                 # Home, Dashboard, About
β”œβ”€β”€ services/              # Frontend API client
└── docs/useful_projects/  # co2tools, libdxfrw

🎨 Screenshots

Coming soon


🀝 Contributing

Contributions welcome! See CONTRIBUTING.md.

Ideas for contribution:

  • Additional export formats (FBX, DAE)
  • Multi-story building detection
  • Texture and material support
  • Mobile app

πŸ“„ License

MIT License - see LICENSE


πŸ™ Acknowledgments


Built with ❀️ by Vartmor

⭐ Star us if you find CADLift useful!

About

CADLift is a open source project that converts your prompts, images, 2D DWG/DXF drawings into production-ready 3D geometry compatible with AutoCAD, FreeCAD, Blender, Unity, and more.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages