Fesh.Revit
F# Scripting editor for Revit
Install / Use
/learn @goswinr/Fesh.RevitREADME

Fesh.Revit
Fesh.Revit is an F# scripting editor hosted inside Revit. It is based on Fesh.<br> It has semantic syntax highlighting, auto completion, type info tooltips and more.<br> The output window supports colored text.
The example script in the root folder generates the axes for cladding of the Louvre Abu Dhabi.<br>
See also my talk at <a href="https://www.youtube.com/watch?v=ZY-bvZZZZnE" target="_blank">FSharpConf 2016</a>
How to install
Download and run the Setup.exe from Releases.<br> Use the .NET 8 version if you have Revit 2025 or later.<br> 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.<br>
The app will be installed in \AppData\Local\Fesh.Revit. <br>
Setup will launch the Fesh.Revit.Bootstrapper.exe. It will register the Fesh.Revit.dll with Revit <br>
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. <br>
The Fesh.Revit.dll also provides utility functions to run <a href="https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Revit/files/GUID-C946A4BA-2E70-4467-91A0-1B6BA69DBFBE-htm.html" target="_blank">synchronous transaction</a> on the current document or app instance:
Fesh.Revit.Scripting.transactWithApp (fun (app:UIApplication) -> ... )
Release Notes
For changes in each release see the CHANGELOG.md
Publisher Privacy Policy
Fesh.Revit does not collect any data.<br> The app only connects to the internet to check for updates on the Github Releases page and downloads upon user confirmation.<br> The relevant source code is here: Velo.fs.
License
Fesh is licensed under the MIT License.
