Hi Everyone,
I am having problems with the “Rename Files” Node from the Archi-Lab Package. My project is in Revit 2019.
The issues seem very similar to what Julia had within this post. The files seem to be renamed to the first character of the string rename and then error out. (sometimes it will rename the second file in the list but with the second string character in the file name.)
I have worked through the comments within this above post to no avail. To my surprise, replacing the node from the one posted here actually worked the best so far. As it successfully renamed the first file correctly, but did does not proceed to rename the other files. (Frozen Python Script Node in image)
Here is an image of my script below :
Error message within Watch Node is :
Traceback (most recent call last) :
File “,string.”, line 27, in
Windows Error: [Errno 2] [Errno 3] Could not find part of the path ‘C:\Users[MY NAME]\OneDrive - [COMPANY NAME]\Documents\MY NAME Documents\PDF Creator Files\MOR-FHS-MOR-ZZ-ZZ-M3-I-0001(v19) - Sheet - 0001 - Ground Floor Overall View.pdf’.
Traceback (most recent call last) :
File “,string.”, line 27, in
Windows Error: [Errno 17] [Errno 183] Cannot create a file when that file already exists.
[this just repeats for each remaining index]
Would the fact I am on a OneDrive Directory affect it? As whenever a file is created/renamed it needs to sync it back to the server?
Many thanks all,
Shatner
EDIT : I tried running the script into a external harddrive that won’t sync so don’t think it is the onedrive issue.