Reputation: 21
My intention is to open and close a file located on BIM360 via python to force sync Desktop Connector.
import os
filepath = "C:\\Users\\{}\\ACCDocs\\XXXX\\Project Template\\Project Files\\File.txt".format(os.environ['USERNAME'])
file = open(filepath, "r")
file.read()
file.close()
I have tried this through RevitPythonShell and Python Script node in dynamo and when reading the file it returns 'Proxy\n' and does not sync the file
Just a side note; using OOTB dynamo nodes 'File Path' node to 'FileSystem.ReadText' node, DOES read the file and force sync.
edit: additional side note, opening and reading the file from a python terminal in vscode was also successful in forcing the sync.
edit2: 'File From Path' node to 'FileSystem.ReadText' node, does not work and returns 'Proxy' as well.
Upvotes: 1
Views: 248