Hello,
I need to implement automatic local copy opening for our rvt files. Can I somehow use OpenOption in DocumentOpening event so that to decide prefereble openoption at runtime.
I found folowing example, but can't find a way to in DocumentOpening event.
OpenOptions openOption = newOpenOptions();
openOption.DetachFromCentralOption =
DetachFromCentralOption.DetachAndPreserveWorksets;
ModelPath modelPath = ModelPathUtils.ConvertUserVisiblePathToModelPath(targetFile);
Document openFile = uiApp.Application.OpenDocumentFile(modelPath, openOption);
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
Dear evgeniy_bannikov,
Please look at the new option provided for opening document files in Revit 2014:
http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html
Do they fulfill your needs?
Best regards,
Jeremy