
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to read and display all the 3D views from multiple documents (hundred of them), the way I'm doing it right now is the following:
1 - I Open the document using the function app__.OpenDocumentFile(model_path, oo)
2 - Read the 3D views
The problem with this is it takes so long to open the document, so I thought to close all the worksets before opening the document. What I found weird for me is the function Close of the class WorksetConfiguration requires a list of elementids, which doesn't make sense because this is still an option the open the document
Hence, I have 2 questins:
1 - Is there any way to open a document and read all the 3D views faster.
2 - And is there any way to close all the worksets before I open a document
here my OpenOptions class
With oo
.DetachFromCentralOption = DetachFromCentralOption.DetachAndPreserveWorksets
.SetOpenWorksetsConfiguration(wsc)
.AllowOpeningLocalByWrongUser = True
End With
Thank you 🙂
Solved! Go to Solution.