# Column Diameter Change

**URL:** <https://forum.dynamobim.com/t/column-diameter-change/38219>\
**Category:** Uncategorized\
**Created:** [July 11, 2019, 2:06pm UTC](https://forum.dynamobim.com/t/column-diameter-change/38219 "2019-07-11T14:06:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Dmytro\_Serebriian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dmytro_serebriian/32/75575_2.png) [@Dmytro\_Serebriian](https://forum.dynamobim.com/u/Dmytro_Serebriian)\
**Post date:** [July 11, 2019, 4:05pm UTC](https://forum.dynamobim.com/t/column-diameter-change/38219/5 "2019-07-11T16:05:36Z")

</div>

Hi, @ramabalan.v!  
I think this should work. You can play a bit with this code

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f66bc7d0c0dc3726307f4f70ff7f1dcefb54b5f8.png)  
python for copy/pasting:

> ```
> import clr
> clr.AddReference('RevitAPI')
> from Autodesk.Revit.DB import *
> clr.AddReference("RevitServices")
> import RevitServices
> from RevitServices.Persistence import DocumentManager
> from RevitServices.Transactions import TransactionManager
> doc = DocumentManager.Instance.CurrentDBDocument
> 
> col = UnwrapElement(IN[0]) #Unwrap element
> TransactionManager.Instance.EnsureInTransaction(doc)
> for i in col:
> fam = doc.GetElement(i.GetTypeId()) #get family type
> len = fam.LookupParameter(IN[1]) #get its parameter
> len.Set(IN[2]/304.8) #set parameter
> TransactionManager.Instance.TransactionTaskDone()
> OUT = 0
> 
> ```

But i think, it is better to change family type - not its parameters:

> [@Changing Family Type of Elevation](https://forum.dynamobim.com/t/changing-family-type-of-elevation/38064):
>
> Hi, does anyone know how I can change the Type of a family with dynamo? See picture below SetParameterByName node, and using “Type” doesn’t seems to work. It gives an error saying the parameter doesn’t exist. I’m trying to change Type, under Family. Not the Symbol parameter since this would change it for all family types in the project. Preferably not using the family type dropdown menu, since this can cause some problems when someone else opens the script with dyn…

---

_[View the full topic](https://forum.dynamobim.com/t/column-diameter-change/38219)._
