Gotcha!
The first BIP LEVEL_PARAM didn’t work, it needs the 2nd… I’ll have to run some kind of check…
pId = ElementId(BuiltInParameter.SCHEDULE_LEVEL_PARAM)
sRule = ParameterFilterRuleFactory.CreateEqualsRule(pId, level.Id)
fRule = ElementParameterFilter(sRule)
#Do some action in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for name,cat in zip(filtNames,cats):
paraele = ParameterFilterElement.Create(doc,name,catids)
paraele.SetElementFilter(fRule)
Parafilele.append(paraele)
TransactionManager.Instance.TransactionTaskDone()
OUT = Parafilele