Forum

Author Topic: request doc.close()  (Read 4836 times)

forumname

  • Newbie
  • *
  • Posts: 36
    • View Profile
request doc.close()
« on: March 11, 2022, 06:45:53 PM »
This has been suggested previously, and would have saved me a lot of trouble because of unexpected behavior with doc.open() and doc.save(). A method for terminating the connection to doc to ensure that all components have been written to that point would be helpful.


Sylvain M.

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: request doc.close()
« Reply #1 on: July 18, 2024, 05:50:37 PM »
I'm taking my first steps with Metashape Python API, and I'm having the same problem with Locked Projects.
I've tried
Code: [Select]
Metashape.app.quit()or
Code: [Select]
os.remove(r"D:\PATH\PROJECT.files\lock")but nothing works: the project remains locked at the end of the execution of my Python scripts.

I see that the problem has been raised several times * over the years: are there any possible workarounds?

 * examples :
https://www.agisoft.com/forum/index.php?topic=16331
https://www.agisoft.com/forum/index.php?topic=9981
https://www.agisoft.com/forum/index.php?topic=12951.0
https://www.agisoft.com/forum/index.php?topic=13581