Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a command to resave as central a group of models.
The problem I'm facing is that some of the models are not opening due to the message 'This model is linked into one or more open documents'.
Basically my code opens the file, saves it, then closes it. However if the proceding model has one of the the models linked in, then the command fails. I'm wondering if I need to put in a delay to wait for the previous model to close before the next model is opened?
Document = uiapp.Application.OpenDocumentFile(objModelPath, objOpenOptions)
..
Document.SaveAs(strFullFileName, objSaveAsOptions)
..
Document.Close()
Solved! Go to Solution.