Working with Familyes

Hi!
I am remeber, that in previous version of Dynamo I was able to get family types by their names.
But now, I use the last version (1.2) and my old nodes doesnt work!
Why is it so and how to solve the problem?

In that case, I am trying to get wall thickness, but my old method doesn’t work here- I just cant get family type …

Project2.rvt (2.8 MB)
Walls.dyn (9.2 KB)

Solve it by Python script

import clr
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *

items = UnwrapElement(IN[0])
typelist = list()
for item in items:
try:
typelist.append(item.Document.GetElement(item.GetTypeId()))
except:
typelist.append(list())
OUT = typelist

Hi @sashka364

I don’t why ur dyn it’s not working but, You can use the clockwork nodes to get the width, check the picture below.

also check

http://dynamobim.org/forums/topic/how-to-get-host-wall-thickness-and-materials-of-windows-and-doors/

1 Like