Mensaje 1 de 7
Create/Save project with UNC Paths

No aplicable
10-08-2020
10:33 PM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
I have a script for creating new models - created with Python in Dynamo. Using UNC paths (\\local\folder\folder\...) instead of traditional (drive:\folder\folder\...) paths I get the following error:
Exception: The model could not be saved: (COleException 0x80030002)
Unfortunately, I don't have the option to not use a UNC path. I'm certain the problem originates when I use the result from "ConvertUserVisiblePathToModelPath" in SaveAs(..)
path = DB.ModelPathUtils.ConvertUserVisiblePathToModelPath(unc_path_here)
...
doc.SaveAs(path, sopt)
I have also tried the FilePath method, here the script never stops..
https://www.revitapidocs.com/2015/0776a818-f032-a332-ac59-962953d8493a.htm
https://www.revitapidocs.com/2015/db245ec6-e07a-b989-077a-a2947e308345.htm
Does anyone have a suggestion how to fix the problem? 🙂