An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![Logo](https://raw.githubusercontent.com/goswinr/Fesh.AutoCAD/main/Media/logo128.png)

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

# Fesh.AutoCAD
[![Build](https://github.com/goswinr/Fesh.AutoCAD/actions/workflows/build.yml/badge.svg?event=push)](https://github.com/goswinr/Fesh.AutoCAD/actions/workflows/build.yml)
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fgoswinr%2FFesh.AutoCAD&count_bg=%2379C83D&title_bg=%23555555&icon=github.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
![code size](https://img.shields.io/github/languages/code-size/goswinr/Fesh.AutoCAD.svg)
[![license](https://img.shields.io/github/license/goswinr/Fesh.AutoCAD)](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.

![Screenshot](Media/screen1.png)
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).