Open Kranfield opened 2 years ago
Ok so after a week, I found why it was not working. It seems that the saving process is not opening the file so you have to open it before and keep it open. Maybe it would be great to add a functionnality that detect whether the file is open or not, and will open it in write mode if it is not the case.
Hi @Kranfield - I guess in your OpenVis() method you are either processing the vsdx file in a with block or explicitly closing it, so the vis object has all the data from the vsdx file but after it's closed the folder structure is removed so we get this error.
I hadn't considered this use case before - but I can see it being really useful. Ideally the original vsdx file contents will be incorporated into the VisioFile object so it can still reconstruct the file structure in save_vsdx() whether still open or not.
Let me have a look into that and feedback here
Hello,
When I try to save a vsdx (with vis.save_vsdx("vsdx_file_name_here") I edited with a python script, I have this error :
Right now I am not sure why the "file is not found", since when I open my vsdx as a zip, in /MVS_BASELINE20220927/vision/pages/_rels, i find the pages.xml.rels. I was guessing it is because of the \ and / in the path, but I prefer to ask here (maybe I did a stupid error and I did not see it...)
my main section of code :
Any guess where this error can come from ?
Yours,
Quentin