https://github.com/goswinr/fesh.autocad
F# scripting editor for AutoCad
https://github.com/goswinr/fesh.autocad
autocad autocad-addins fsharp fsharp-interactive fsi
Last synced: 11 months ago
JSON representation
F# scripting editor for AutoCad
- Host: GitHub
- URL: https://github.com/goswinr/fesh.autocad
- Owner: goswinr
- License: mit
- Created: 2025-01-20T21:01:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-15T18:31:54.000Z (about 1 year ago)
- Last Synced: 2025-07-04T19:07:37.923Z (11 months ago)
- Topics: autocad, autocad-addins, fsharp, fsharp-interactive, fsi
- Language: F#
- Homepage:
- Size: 1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README

# THIS DOES NOT WORK YET IT IS JUST COPIED AND RENAMED FROM Fesh.Revit
# Fesh.AutoCAD
[](https://github.com/goswinr/Fesh.AutoCAD/actions/workflows/build.yml)
[](https://hits.seeyoufarm.com)

[](LICENSE)
Fesh.AutoCAD is an F# scripting editor hosted inside [AutoCAD]("https://www.autodesk.com/products/autoCad/overview"). It is based on [Fesh](https://github.com/goswinr/Fesh).
It has semantic syntax highlighting, auto completion, type info tooltips and more.
The output window supports colored text.

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](https://github.com/goswinr/Fesh.AutoCAD/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](https://velopack.io) 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:
```fsharp
Fesh.AutoCAD.ScriptingSyntax.runApp (fun (app:UIApplication) -> ...)
```
## Release Notes
For changes in each release see the [CHANGELOG.md](https://github.com/goswinr/Fesh.AutoCAD/blob/main/CHANGELOG.md)
## License
Fesh is licensed under the [MIT License](https://github.com/goswinr/Fesh.AutoCAD/blob/main/LICENSE.md).