Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

chuongmep commented Jun 21, 2022

Revit 2019 or lower
image

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