I am attempting to create a Dynamo definition that will list family names, types, and the names of reference planes within those families. The output can be the watch node as I am only using this for an internal check.
Any guidance would be greatly appreciated.
This is as far as I can get on my own.
@bharris35A87 Essentially you can rely on the family documents. Here I am getting the names, type names, and ref plane names of all editable families.
fam_names_types_planes.dyn (15.9 KB)
or with list.map to separate the outputs.
elems = UnwrapElement(IN[0])
elems = list(filter(lambda f: f.IsEditable, elems))
fams = {}
for e in elems:
fam_doc = doc.EditFamily(e)
planes = FilteredElementCollector(fam_doc).OfClass(ReferencePlane).ToElements()
plane_names = list(map(lambda p: p.Name, planes))
types = fam_doc.FamilyManager.Types
type_names = list(map(lambda t: t.Name, types))
fams[e.Name] = (type_names, plane_names)
1 Like
@BimAmbit,
This is great! I appreciate your help.
1 Like