Hello,
I worked out some Python scripts using FilteredElementCollector and a FilterStringRule.
Always worked out well.
For example here i create a list with the rectangle ducts :
bip = BuiltInParameter.RBS_CALCULATED_SIZE
provider = ParameterValueProvider(ElementId(bip))
evaluator = FilterStringContains()
rule = FilterStringRule(provider,evaluator,“x”,False)
filter = ElementParameterFilter(rule)
collector= FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_DuctCurves)
coltype = collector.WherePasses(filter).ToElements()
But i also want a list without rectangle ducts. In the revit api there is no FilterStringNotContains().
Anybody have an approach for this?
Thanks alot.