A Revit plugin that enables AI-powered 3D model generation from Meshy directly inside Autodesk Revit. Generate 3D meshes from text prompts or reference images and place them into your Revit project as DirectShape elements or loadable Family instances (.rfa).
- Text to 3D: Generate 3D models from text descriptions (two-stage preview + refine workflow)
- Image to 3D: Create 3D models from a single reference image (.jpg, .png)
- Multi-Image to 3D: Provide 1-4 images of the same object from different angles for higher-quality results
- DirectShape Placement: Place generated meshes directly into the active Revit document as Generic Model elements
- Family Creation: Save generated meshes as loadable Revit families (.rfa) and place as FamilyInstance elements
- Multi-Version Support: Targets Revit 2024, 2025, and 2026
- Configurable Generation: Control topology, polycount, AI model version, and PBR map generation
- Autodesk Revit 2024, 2025, or 2026
- Meshy account with an API key (get one here)
- Visual Studio 2022 (for building from source)
- Clone this repository:
git clone https://github.com/qrost/meshy-revit-plugin.git - Open
Meshy-Revit.slnin Visual Studio 2022 - Select the build configuration for your Revit version (see Build Configurations)
- Build the solution -- the post-build event automatically deploys to the Revit Addins folder
- Download the release for your Revit version
- Copy
MeshyRevit.addinto%APPDATA%\Autodesk\REVIT\Addins\{version}\ - Copy
MeshyRevit.dlland dependencies to%APPDATA%\Autodesk\REVIT\Addins\{version}\MeshyRevit\ - Restart Revit
- In Revit, go to the Meshy ribbon tab
- Click Meshy 3D Generator
- On first launch, click Settings and enter your Meshy API key (
msy_...) - The key is stored locally at
%APPDATA%\MeshyRevit\settings.json
- Open the Meshy 3D Generator window from the ribbon
- Choose a tab: Text-to-3D, Image-to-3D, or Multi-Image-to-3D
- Enter your prompt or select image(s)
- Configure generation options:
- AI Model: Meshy-6 (latest) or Meshy-5
- Topology: Triangle or Quad mesh
- Target Polycount: 100 -- 300,000
- PBR Maps: Enable metallic, roughness, and normal map generation
- Select output format: DirectShape or Family (.rfa)
- Click Generate -- the plugin submits the task, shows real-time progress, and places the result in Revit
The plugin follows an async-safe pattern required by the Revit API:
- User input is collected in a modeless WPF window (Revit remains interactive)
- API calls and model download run on a background thread
- The downloaded OBJ file is parsed into vertices and triangle faces (with meter-to-feet conversion)
- Geometry creation is marshaled to the Revit main thread via
IExternalEventHandler+ExternalEvent - Mesh triangles are built using
TessellatedShapeBuilderand placed as a DirectShape or within a new Family document
The project uses build configurations to target multiple Revit versions:
| Configuration | Revit Version | .NET Target |
|---|---|---|
Debug-R2024 / Release-R2024 |
Revit 2024 | .NET Framework 4.8 |
Debug-R2025 / Release-R2025 |
Revit 2025 | .NET 8.0 |
Debug-R2026 / Release-R2026 |
Revit 2026 | .NET 8.0 |
# Build for a specific Revit version
msbuild Meshy-Revit.sln /p:Configuration=Release-R2024
msbuild Meshy-Revit.sln /p:Configuration=Release-R2025
msbuild Meshy-Revit.sln /p:Configuration=Release-R2026Plugin does not appear in Revit:
- Verify the
.addinfile is in%APPDATA%\Autodesk\REVIT\Addins\{version}\ - Check that the DLL path in the
.addinfile matches the actual file location - Look at the Revit journal file for load errors
API key rejected:
- Ensure your key starts with
msy_and has not been revoked - Check your internet connection
- Verify credits are available on your Meshy account
Mesh placement fails:
- Ensure a project document (not a family document) is open
- Check the Revit status bar and journal for error details
- Very high polycount meshes may need the target reduced
Build errors for a Revit version:
- Confirm the matching
Autodesk.Revit.SDKNuGet package version is available - For Revit 2024: requires .NET Framework 4.8 SDK
- For Revit 2025/2026: requires .NET 8 SDK
This plugin uses the Meshy REST API:
| Endpoint | Method | Purpose |
|---|---|---|
/openapi/v2/text-to-3d |
POST | Create text-to-3D task (preview or refine) |
/openapi/v2/text-to-3d/:id |
GET | Retrieve task status and model URLs |
/openapi/v1/image-to-3d |
POST | Create image-to-3D task |
/openapi/v1/image-to-3d/:id |
GET | Retrieve task status and model URLs |
/openapi/v1/multi-image-to-3d |
POST | Create multi-image-to-3D task |
/openapi/v1/multi-image-to-3d/:id |
GET | Retrieve task status and model URLs |
Authentication: Authorization: Bearer msy_... header on all requests.
Contributions are welcome. Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add YourFeature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
- Initial release
- Text-to-3D with preview + refine workflow
- Image-to-3D single image generation
- Multi-Image-to-3D (1-4 images)
- DirectShape and Family (.rfa) output modes
- Multi-version support for Revit 2024, 2025, 2026
- Configurable topology, polycount, AI model, and PBR options
- Modeless WPF UI with real-time progress tracking
- API key persistence to user AppData
This project is licensed under the GNU General Public License v3.0.
- Meshy Documentation: docs.meshy.ai
- Issues: Report via the repository issue tracker
Made by QROST