Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 20, 2020 06:11
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 chuongmep/6a75e8244da35434a0d170f4fe4b3de1 to your computer and use it in GitHub Desktop.
Save chuongmep/6a75e8244da35434a0d170f4fe4b3de1 to your computer and use it in GitHub Desktop.
Imports System
Imports Autodesk.Revit.UI
Imports Autodesk.Revit.DB
<Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Automatic)> _
Public Class Class1
Implements IExternalCommand
Public Function Execute(ByVal revit As ExternalCommandData, ByRef message As String, _
ByVal elements As ElementSet) As Autodesk.Revit.UI.Result _
Implements IExternalCommand.Execute
TaskDialog.Show("Revit", "Hello World")
Return Autodesk.Revit.UI.Result.Succeeded
End Function
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment