# Split Column Python Script Doenst work in revit 2019

**URL:** <https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309>\
**Category:** Uncategorized\
**Created:** [March 12, 2019, 3:57am UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309 "2019-03-12T03:57:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tamn/32/64146_2.png) [@Tamn](https://forum.dynamobim.com/u/Tamn)\
**Post date:** [March 12, 2019, 3:57am UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/1 "2019-03-12T03:57:40Z")

</div>

Hi there,  
I have created a script to split column by level using Python (Python created from others) it works fine except for Revit 2019 version. I’ ve attached the Dyn here please if any one know what happened.  
Thanks

[SplitColumns.dyn](https://forum.dynamobim.com/uploads/short-url/A4I5iuRbBF8ZpNAGP4NkKgmGRdi.dyn) (53.2 KB)

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [March 12, 2019, 3:58am UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/2 "2019-03-12T03:58:37Z")

</div>

@Tamn what’s the error?

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [March 12, 2019, 4:13am UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/3 "2019-03-12T04:13:02Z")

</div>

@Tamn there are also some custom nodes which are not annotated. I won’t be able to test it.

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

---

<div class="post-metadata">

**Author:** ![Tamn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tamn/32/64146_2.png) [@Tamn](https://forum.dynamobim.com/u/Tamn)\
**Post date:** [March 12, 2019, 8:09pm UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/4 "2019-03-12T20:09:52Z")

</div>

@salvatoredragotta  
The packages are missing in your screen shot are: Clock Work and Synthesize toolkit please.  
The errors are as shown below from  
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
File “”, line 106, in   
File “”, line 38, in GetColumnCentreline  
SystemError: The type initializer for ‘Autodesk.LibG.LibGPINVOKE’ threw an exception.

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

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [March 13, 2019, 10:22pm UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/5 "2019-03-13T22:22:53Z")

</div>

@Tamn

I didn’t manage to replicate your error but I manage to make it work with the following modifications.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/8/087ddcffeb953f639aae7c8f59f237162f739be1.png)

I’m still getting some errors but the columns are split. i didn’t have time to go into the details of the Python code.

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

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/528d243a34363535ca5dbd11231179c525fbd662.png)

---

<div class="post-metadata">

**Author:** ![Tamn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tamn/32/64146_2.png) [@Tamn](https://forum.dynamobim.com/u/Tamn)\
**Post date:** [March 13, 2019, 11:05pm UTC](https://forum.dynamobim.com/t/split-column-python-script-doenst-work-in-revit-2019/33309/6 "2019-03-13T23:05:13Z")

</div>

@salvatoredragotta, thanks Sal, Ive checked on other machine and It works but still doensnt work on mine. Ive tried reinstall dynamo but still doesn’t help.
