Message 1 of 3
Not applicable
04-26-2013
02:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.