# “New Sizes” in the catalog

**URL:** <https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615>\
**Category:** Revit\
**Tags:** revit, excel, python, dynamo\
**Created:** [December 21, 2017, 4:32pm UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615 "2017-12-21T16:32:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictorTrevijano](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@VictorTrevijano](https://forum.dynamobim.com/u/VictorTrevijano)\
**Post date:** [December 21, 2017, 4:32pm UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/1 "2017-12-21T16:32:20Z")

</div>

Hello everyone!

I want to be able to create “New Sizes” in the catalog.

 ![1_“New Sizes” in the catalog](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/3883c4e59173e112b8d36cced10ca889f06c9391.jpg)

I am trying to automate the process of creating and introducing manually the pipe and segment charts.  
I was able to achieve to make Dynamo read the data from a .csv file, but I am missing the step where I can transfer the data through Dynamo into Revit.

I followed @Cyril_Waechter ´s steps in order to achieve this sequence. ([http://pythoncvc.net/?p=222](http://pythoncvc.net/?p=222))

Below I attached a screenshot in which you can see the exact step that I cannot figure out just yet.

I also tried to modify the Python code, but as I do not know a lot about Python any input would be greatly appreciated.

Thanks!

 ![2_“New Sizes” in the catalog](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/83931704ec07367c5662c416d2b5654553690fa0.PNG)

 ![3_“New Sizes” in the catalog](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/984595666b1271af4f10e8e4482ef854b8f785b3.PNG)

---

<div class="post-metadata">

**Author:** ![slepagetrudeau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/slepagetrudeau/32/29983_2.png) [@slepagetrudeau](https://forum.dynamobim.com/u/slepagetrudeau)\
**Post date:** [December 21, 2017, 4:54pm UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/2 "2017-12-21T16:54:14Z")

</div>

The python node says that it expect a FLOAT but was fed a STR.

Essentially, your list seem to be strings, convert them to integer using a “to number node”

STR: "15"  
INT: 15  
FLOAT : 15.0000000

---

<div class="post-metadata">

**Author:** ![VictorTrevijano](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@VictorTrevijano](https://forum.dynamobim.com/u/VictorTrevijano)\
**Post date:** [December 22, 2017, 7:54am UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/3 "2017-12-22T07:54:55Z")

</div>

It’s still not working ☹ . Now, the warning says:

“Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 11, in   
TypeError: expected Reference, got list”

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [December 22, 2017, 8:01am UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/4 "2017-12-22T08:01:53Z")

</div>

If you look at the original post you will see that the [Element.Id](http://Element.Id) node is actually a different one. I expect that that node actually returns an ElementId and not an int (like the [Element.Id](http://Element.Id) node in your graph does).  
Also make sure to only input a single ElementId and not a list.

---

<div class="post-metadata">

**Author:** ![VictorTrevijano](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@VictorTrevijano](https://forum.dynamobim.com/u/VictorTrevijano)\
**Post date:** [December 22, 2017, 10:05am UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/5 "2017-12-22T10:05:09Z")

</div>

It WORKS!, but it’s just with index [0]. But if I connect the list it doesn’t work. The warning says:

“Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 24, in   
TypeError: expected float, got list”

I thought to connect List.Cycle (amount=number of elements in the lists), but it doesn’t work either. The warning says:

“Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 15, in   
TypeError: expected Reference, got list”

Thanks all for your time!

---

<div class="post-metadata">

**Author:** ![VictorTrevijano](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@VictorTrevijano](https://forum.dynamobim.com/u/VictorTrevijano)\
**Post date:** [December 22, 2017, 1:13pm UTC](https://forum.dynamobim.com/t/new-sizes-in-the-catalog/17615/6 "2017-12-22T13:13:23Z")

</div>

Hi everyone!

I have found a solution, even better that I was looking for. Now I can create the segment too. It is great!  
It is in the link, an old post.

> [@Create pipe segment through Dynamo](https://forum.dynamobim.com/t/create-pipe-segment-through-dynamo/4621/7):
>
> Here is my script: [PipeSegment\_add.dyn](http://forums.autodesk.com/autodesk/attachments/autodesk/382/11454/1/PipeSegment_add.dyn) Your script is add new string to existing table. My script is create new table.

It is in russian, but it is all explain in it.

Thanks everybody for your time and thanks @catexis
