# Couldnt find a version of Bylevel

**URL:** <https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396>\
**Category:** Uncategorized\
**Created:** [February 6, 2017, 2:51pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396 "2017-02-06T14:51:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 6, 2017, 2:51pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/1 "2017-02-06T14:51:56Z")

</div>

Hi all,

i have a problem with my script of Dynamo. it works for long time, now i try to use it and it appears the problem showing in the picture attached.  
Anyone could tell why this problem is produced??

I can attachaed the script as well if it is needed

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

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [February 6, 2017, 3:08pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/2 "2017-02-06T15:08:30Z")

</div>

Hi @pedroSU62A ,  
can you show what comes out of List.Map

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [February 6, 2017, 3:08pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/3 "2017-02-06T15:08:34Z")

</div>

@pedroSU62A While you could try some alternate _Lacing_ options, it would help if more information is provided (files, images with expanded preview bubbles, etc)

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 6, 2017, 3:46pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/4 "2017-02-06T15:46:01Z")

</div>

HI,  
see the script file FYI[Test Views templates.dyn](https://forum.dynamobim.com/uploads/short-url/mJIyWav706rks1o8xNlT5TI7xHL.dyn) (20.9 KB)

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 7, 2017, 10:00am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/5 "2017-02-07T10:00:57Z")

</div>

Someone can help me,  
it seems a node is disappeared with the new updates…  
but i cant find a solution to run the script.

Regards guys

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 7, 2017, 10:19am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/6 "2017-02-07T10:19:46Z")

</div>

Hi @pedroSU62A

The script alone is not helpful - Need the Excel too as that appears to be the starting point… And will explain what is trying to be achieved.

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 7, 2017, 10:21am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/7 "2017-02-07T10:21:46Z")

</div>

Hi @Chandrasekar_Rajaman see attached the exce[test.xlsx](https://forum.dynamobim.com/uploads/short-url/s6HXOHoKeOZJDms3AtyqrssNr6e.xlsx) (11.7 KB)  
ll

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 7, 2017, 10:28am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/8 "2017-02-07T10:28:30Z")

</div>

Hi @pedroSU62A

Needed to change the Link to the Excel (file name is different)  
Needed to change the Input (Excel sheet name is different)

Assuming those are not the issue; this is what @Mostafa_El_Ayoubi was asking

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

Think it’s self-explanatory… Unless your error at that node is different…  
One of the level names (does not match between Revit & Excel)

Ok - Reason is that the I ran the script by opening a new file off the standard template… So it didn’t have a level by name **Level 0** 🙂

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 7, 2017, 10:43am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/9 "2017-02-07T10:43:21Z")

</div>

Hi @pedroSU62A

Ok the script runs fine except for the last portion of setting up parameters (probably because my Default Revit file doesn’t have those specific project/shared parameters)

So - if you restart Revit & Dynamo (assume it is the issue of cache not getting cleared), and then re-run the script  
It should work fine!

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 7, 2017, 10:52am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/10 "2017-02-07T10:52:19Z")

</div>

Hi @Chandrasekar_Rajaman :  
yes the link and the input are correct the only thing that i didnt save in the script the file i have sent you (script and excell).  
On the other hand, the levels are the same in the excel and in the project that i have double checked, for that reason it seems really weird this problem, when i was using this script for months without any problem.  
This week is the first time I have the error “Warning: One or more of the input types are not matching. Couldn’t find a version of ByLevel that takes arguments of type (\_\_array)”

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 8, 2017, 1:23am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/11 "2017-02-08T01:23:29Z")

</div>

@pedroSU62A

The script creates a copy of one floor plan per level (2 levels in my sample file) & names it with a value from Excel. But I don’t get the error. However, I could see there is an input of 158… So a bit unclear - Can you confirm the output you are expecting?  
Did you also try changing the Lacing as suggested by Vikram?

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 9, 2017, 1:52pm UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/12 "2017-02-09T13:52:39Z")

</div>

@Chandrasekar_Rajaman so u did run the script and it worked in your revit file and both views were created???

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 10, 2017, 1:09am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/13 "2017-02-10T01:09:21Z")

</div>

@pedroSU62A  
Of course; that’s why I was wondering if more was expected from the script…  
It worked more than once; so nothing wrong with the script 🙂

---

<div class="post-metadata">

**Author:** ![pedroSU62A](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedrosu62a/32/9839_2.png) [@pedroSU62A](https://forum.dynamobim.com/u/pedroSU62A)\
**Post date:** [February 10, 2017, 8:34am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/14 "2017-02-10T08:34:27Z")

</div>

@Chandrasekar_Rajaman wouh!!! unveliveable!! it doesnt work in my revit!!! everytime shows the error I attached in the first post!!!

---

<div class="post-metadata">

**Author:** ![Chandrasekar\_Rajaman](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Chandrasekar\_Rajaman](https://forum.dynamobim.com/u/Chandrasekar_Rajaman)\
**Post date:** [February 10, 2017, 8:47am UTC](https://forum.dynamobim.com/t/couldnt-find-a-version-of-bylevel/9396/15 "2017-02-10T08:47:59Z")

</div>

@pedroSU62A  
I didn’t save the file - But if u want to; I can (create again &) send you the sample project files 🙂  
BTW, Can you start a new project off the Archi Template & try running the script? If you have not done it already?  
That’s what I did & it worked… after I renamed the levels to be Zero & One
