Is there any way to reload document from plugin api?
Can you please verify what you mean by “reload document”?
Sure. Simple case: you have document “test.xd” opened. Then you replace this document with another document with same name with different content in filesystem (copy->paste->replace). Result - opened document still has “old” content. I want to “reload” it through plugin api to not close/open manually.
When you “replace this document with another document with same name with different content in filesystem”, how are you achieving this? Through plugin APIs? or manipulating the file format directly?
Copy-paste file with same name from one folder to another.
Got it now. There is no API for that type of reload. What’s the use case for this in your plugin?
Need for some kind of synchronization of file shared over local network.