I want to load the *.api file in C# code. I am trying to export the images from Revit file for specific views in c# application. The issue is to get the ExternalCommandData from revit (*.rvt) file.
public Autodesk.Revit.UI.Result Execute(ExternalCommandData revit,
ref string message, ElementSet elements)
{
UIApplication uiapp = revit.Application;
}
I want to browse all *.rvt file and call above method from the Windows form.
Revit can only run plugins in-process, therefore you cannot use its API from a WinForm app. The Execute method you mentioned is, in fact, called by Revit on the DLL code.