# Archilab Rename Files Error

**URL:** <https://forum.dynamobim.com/t/archilab-rename-files-error/24592>\
**Category:** Revit\
**Created:** [August 8, 2018, 9:35am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592 "2018-08-08T09:35:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 9:35am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/1 "2018-08-08T09:35:25Z")

</div>

Hi All!  
I am trying to remane pdf with Archilab nodes but there must be something wrong and I dont know what to do…I am new here and I don’t know where could be the problem

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/0/40816996df830418423de9c236793cdecea1dac3.png)  
I am getting this error: ‘WindowsError: [Errno 17] [Errno 183] Cannot create a file when that file already exists.’ and the solution given in this post ([Archi-lab Rename PDF Errno 17](https://forum.dynamobim.com/t/archi-lab-rename-pdf-errno-17/19537)) doesnt work for me as I have two steps: one for printing (which works) and this one.  
I am using Revit 2017.3 and dynamo 2.0.1.5065

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 9:36am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/2 "2018-08-08T09:36:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/103db41a9d4a7aed97def30d44f31aba76674732.png)

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 9:36am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/3 "2018-08-08T09:36:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/7/57ca1de429131b36cff4b7724b33478fc4fd6c70.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 9:47am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/4 "2018-08-08T09:47:55Z")

</div>

I think [Orchid package](https://github.com/erfajo/OrchidForDynamo) has also a node to rename files

Did you watch this topic to modify the custom node if archilab ?

> [@Archi-lab PDF printer dosent rename why?](https://forum.dynamobim.com/t/archi-lab-pdf-printer-dosent-rename-why/18980/4):
>
> Hi @ninawh94, You need to modify the “Rename files” node if you want use it for a list of pdf files. [Rename%20Files] I revised also the “Print PDF” node to work with a list of pdf names and various sizes of paper. So I no longer need the “Rename files” node. You can find it in the “GeniusLoci” package. [https://forum.dynamobim.com/t/dynamo-exporting-pdf-by-adobe-pdf/18706/7](https://forum.dynamobim.com/t/dynamo-exporting-pdf-by-adobe-pdf/18706/7)

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 10:06am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/5 "2018-08-08T10:06:02Z")

</div>

Hi @Alban_de_Chasteigner, thanks for the reply but the Orchid package seems to be empty  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/703c2b8e5a5e7b1cc96f334b1ea18f7394acee2a.png)  
And I should be missing something as I don’t know how to use the topic you mention for my problem.  
Thanks

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [August 8, 2018, 10:07am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/6 "2018-08-08T10:07:26Z")

</div>

Use the node saying “install or update orchid” in there is instructions on installing the package… (which should be pretty self explanatory)… remember to follow the instructions in the package…

> [@Orchid Package Help](https://forum.dynamobim.com/t/orchid-package-help/21430):
>
> I am trying to set text font parameters in family and saved them in the directory. I am relying heavily on Orchid packages nodes but having no luck. the Error message is telling “Warning: FamilyDocument.SetParameterByName expects argument type(s) (Document, string, string, var), but was called with (Autodesk.Revit.DB.Document, Autodesk.Revit.DB.FamilyType, string, string).” I will post the screenshot of my graph. @erfajo will you please help? I appreciate in advance! [Orchid E…](https://forum.dynamobim.com/uploads/short-url/leXDyLSMnTsVKyMHoeOVj65YYGR.dyn)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 10:28am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/7 "2018-08-08T10:28:18Z")

</div>

You can replace the custom node in archilab package with this one :  
[Rename Files.dyf](https://forum.dynamobim.com/uploads/short-url/8E6KFUImrqt76E7hSBLPdS4hQmv) (5.1 KB)

C:\Users\YOUR NAME\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\[archi-lab.net](http://archi-lab.net)\dyf

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 10:31am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/8 "2018-08-08T10:31:53Z")

</div>

I can’t see how many “Identifiers” and “NewNames” you have.

The 2 lists must be the same length.

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 10:45am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/9 "2018-08-08T10:45:53Z")

</div>

hey, thanks! I replace the custom node and that error is gone 🙂 now I am working on the “NewNames”. As you noticed, it is not right. I know it didn’t have the same lenght but it was working. I thought that as the strings with “-” were covered it was ok. I want them as separators. The length of the empty ones it is the same. Now it is not working anyways.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 10:52am UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/10 "2018-08-08T10:52:03Z")

</div>

I’m totally lost.  
I can’t help you if I don’t see in a picture what the identifiers and NewNames look like.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 12:37pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/12 "2018-08-08T12:37:59Z")

</div>

You have nulls under the list.combine node so yes it’s the newNames that give you the error.

The problem is probably the String.Concat node because there are 13 inputs on List.Concat and only 6 inputs on List.Combine.

List.Combine works like this :

 ![Concat](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/5/e5a849b13d3acb5327194ebf7a2459bf774b7d4b.jpeg)

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 12:55pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/13 "2018-08-08T12:55:40Z")

</div>

I am working in that direction now so that is fixed now.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7db2abb6d32a2ea1eef051409095237829644184.png)  
To make it more simple in order to know what the problem is I am using a “select model element” for the sheet number. So I am getting just one result instead of a list in case that helps.  
I think the problem is the identifier  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/aec5df172ed8d17cc093c80a5c0dcfb1bf701c20.png)  
I printed the pdf including “1362” on its name (sheet number) and the identifier should find this number (index 83 in the picture) and know that that is the file to rename but for some reason it says “cannot create a file when that file already exists”

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 1:03pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/14 "2018-08-08T13:03:24Z")

</div>

You’re inputting 84 identifiers and only one NewNames so the node Rename try probably to rename 84 times the same file.

If you want to test with one pdf file, write “1362” in a code block and connect it to Identifiers.

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 1:16pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/15 "2018-08-08T13:16:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/1/c19e40aa1b663d6d3adf8a6edf6665727be71359.png)  
No error now but this is what I am getting in my desktop: 3 files with no format  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/55a828da84117239714cc21eb4aa6de5972d0ac8.jpg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 1:18pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/16 "2018-08-08T13:18:19Z")

</div>

Can you add a list.create node after the code block “1362”.  
The node is probably waiting for a list and not a singleton.

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 8, 2018, 1:24pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/17 "2018-08-08T13:24:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3ec8e5aa87cd1859312df131ca9c9cc7b8857197.png)  
Nohing changes, It deletes the pdf that includes 1362 on its name but creates a file or files with no format again with just one letter on its/their name.  
Again the “could not find a part of the path”

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 1:45pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/18 "2018-08-08T13:45:39Z")

</div>

It works perfectly with Dynamo 1.3

 ![3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/a/5a8d40e386b06b183c2431813e150bfd2ae01b49.png)

Indeed with Dynamo 2.0, the custom node needs another modification :

 ![0](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b4cf7ce69f852bddbe7b368d2a429beb7c29212f.png)

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [August 8, 2018, 1:51pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/19 "2018-08-08T13:51:39Z")

</div>

@Alban_de_Chasteigner

No auto??  
Why??

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a678e190efff49fb180c81ce568b234a0d4aa5ef.jpg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 8, 2018, 2:04pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/20 "2018-08-08T14:04:03Z")

</div>

Ok it seems to work with Dynamo 2.0 now.  
Can you replace the old node with this one ?

[Rename Files.dyf](https://forum.dynamobim.com/uploads/short-url/1dL9x4Yp6DBLMuuWhU6Th6FOKLh.dyf) (8.5 KB)

 ![Rename](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/209f4a249d6bac98efb3cf53d1c4808c23ed33be.png)

Please note the level 2 on identifiers and NewNames.

---

<div class="post-metadata">

**Author:** ![julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@julia](https://forum.dynamobim.com/u/julia)\
**Post date:** [August 9, 2018, 1:53pm UTC](https://forum.dynamobim.com/t/archilab-rename-files-error/24592/21 "2018-08-09T13:53:29Z")

</div>

Thank you very much. It works pretty good! It is the first script I have tried. Looking forward to continue learning with dynamo 😉

[Next page](https://forum.dynamobim.com/t/archilab-rename-files-error/24592.md?page=2)
