This is not giving me the drop down of family types. Any ideas on the sequence before entering the UI.DropDown Data?
Tried. Still no drop down results:
Try to use FamilyType.ByName node and write family type in code block as string.
Something like this? Tried a few different combinations:
Maybe selecting multiple Family Types will help
Data-Shapes_DropDownExample.dyn (15.3 KB)
I am looking to have the drop down be able to select from the list of family types. The create list just allowed the user to select the two different family types.
You can call then all family types and use them as values if you want to list all family types and select from them.
The node is from Orchid Package.
Thanks @Deniz_Maral but I prefer not to use Orchid package as its a hassle for my team to download. Any other approaches?
import clr clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument clr.AddReference("RevitAPI") from Autodesk.Revit.DB import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) types = FilteredElementCollector(doc).OfClass(FamilySymbol) OUT = [el.ToDSType(True) for el in types]
Or like this ?
Data-Shapes_DropDownExample_v01.dyn (15.5 KB)