Hello,
I tried using what you suggested and expected a dialog box to pop up after exporting the fbx file that prints the file location but unfortunately nothing happens after the export completes. This is what my code looks like:
public class Command : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Application app = uiapp.Application;
Document doc = uidoc.Document;
app.FileExported += App_FileExported;
RevitCommandId id = RevitCommandId.LookupPostableCommandId(PostableCommand.ExportFBX);
uiapp.PostCommand(id);
app.FileExported -= App_FileExported;
return Result.Succeeded;
}// end Execute
private void App_FileExported(object sender, FileExportedEventArgs e)
{
TaskDialog.Show("Test", e.Path);
}
}
I'm not getting any errors though, what am I doing wrong?
Thanks!