Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 21, 2022 02:56
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/281e0249ebcbc3a9bec8611231fbad67 to your computer and use it in GitHub Desktop.
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;
}
}
}
@chuongmep
Copy link
Author

chuongmep commented Jun 21, 2022

Revit 2020 or higher
image

@chuongmep
Copy link
Author

Revit 2019 or lower
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment