Skip to content

Instantly share code, notes, and snippets.

@josinSbazin
Created December 13, 2017 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josinSbazin/77b71f533e192837b78a129961def47f to your computer and use it in GitHub Desktop.
Save josinSbazin/77b71f533e192837b78a129961def47f to your computer and use it in GitHub Desktop.
F# Revit Hello World
namespace Command2
open Autodesk.Revit.UI
open Autodesk.Revit.Attributes
open System.Windows.Forms
[<Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)>]
type Command2() =
class
interface IExternalCommand with
member this.Execute(commandData, message : string byref, elements) =
MessageBox.Show("Hello World") |> ignore
Result.Succeeded
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment