Is there a way through the Revit API to change which document is the current ActiveUIDocument (ExternalCommandData.Application.ActiveUIDocument)? I want to print multiple views from multiple project files using the API but I need to be able to change the current ActiveUIDocument first.
Is there a way through the Revit API to change which document is the
Share
With the Revit 2012 API there is a new method
OpenAndActivateDocumenton theUIApplicationobject. As the method name says it will open and activate the document that you specify with a file path. I tested this and it worked for printing multiple files.