Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 21, 2022 02:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chuongmep/281e0249ebcbc3a9bec8611231fbad67 to your computer and use it in GitHub Desktop.
using System.IO;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using MessageBox = System.Windows.MessageBox;
namespace Test
{
[Transaction(TransactionMode.Manual)]
public class Lab : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
string tempPath = Path.GetTempPath();
MessageBox.Show(tempPath);
return Result.Succeeded;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment