Skip to content

goswinr/Fesh.AutoCAD

Repository files navigation

Logo

THIS DOES NOT WORK YET IT IS JUST COPIED AND RENAMED FROM Fesh.Revit

Fesh.AutoCAD

Build Hits code size license

Fesh.AutoCAD is an F# scripting editor hosted inside AutoCAD. 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 AutoCAD 2025 or later.
Use the .NET 4.8 version if you have AutoCAD 2024 or earlier.

Fesh.AutoCAD 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.AutoCAD.
Setup will launch the Fesh.AutoCAD.Bootstrapper.exe. It will register the Fesh.AutoCAD.dll with AutoCAD
by creating an Fesh.AutoCAD.addin xml file in the AutoCAD Addins folder at C:/ProgramData/Autodesk/AutoCAD/Addins/20XX/Fesh.AutoCAD.addin.

How to use F# with AutoCAD

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

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

Release Notes

For changes in each release see the CHANGELOG.md

License

Fesh is licensed under the MIT License.