mattmas wrote:
> My impression is that OpenDocumentFile will open the document programmatically (giving you access to the document object) - however, it does not change the "ActiveDocument". There is no API at present to modify the ActiveDocument within Revit.
>
> -Matt
Matt is right , OpenDocumentFile and CreateNewProject etc all open documents in
the background and aren't suitable for your requirements. You need to use other
win32API solutions for opening as the active document.
Guy