Skip to content

goswinr/Fesh.Revit

Repository files navigation

Logo

Fesh.Revit

Build Hits code size license

Fesh.Revit is an F# scripting editor hosted inside Revit. It is based on Fesh.
It has semantic syntax highlighting, auto completion, type info tooltips and more.
The output window supports colored text.

Screenshot The example script in the root folder generates the axes for cladding of the Louvre Abu Dhabi.
See also my talk at FSharpConf 2016

How to install

Download and run the Setup.exe from Releases.
Use the .NET 8 version if you have Revit 2025 or later.
Use the .NET 4.8 version if you have Revit 2024 or earlier.

Fesh.Revit will automatically offer to update itself when a new version is available.

The installer is created with Velopack and digitally signed.

No admin rights are required to install or run the app.
The app will be installed in \AppData\Local\Fesh.Revit.
Setup will launch the Fesh.Revit.Bootstrapper.exe. It will register the Fesh.Revit.dll with Revit
by creating an Fesh.Revit.addin xml file in the Revit Addins folder at C:/ProgramData/Autodesk/Revit/Addins/20XX/Fesh.Revit.addin.

How to use F# with Revit

By default a f# script evaluation starts asynchronous on a new thread. The Fesh.Revit.dll also provides utility functions to run synchronous transaction on the current document or app instance:

Fesh.Revit.ScriptingSyntax.runApp (fun (app:UIApplication)  -> ...)

Release Notes

For changes in each release see the CHANGELOG.md

License

Fesh is licensed under the MIT License.