I am currently trying to add a Schedule Filter with filterType “HasParameter” with Dynamo.
Unfortunately there is only a OOTB Node (ScheduleFilter.ByFieldTypeAndValue) which only accepts all 3 Inputs (field, FilterType and value)
As the filterType HasParameter" does not accept any value it will always throw me an error -.-
I alsow know the workaround with the FilterType “GreaterThan” and Value " ". Unfortunately in my UseCase this is not a valid solution as I also need the Elements listed where no value is assigned yet.
You might also try a null over a blank string. APIDocs mentions that no value is provided for HasParameter. You may just have to do it through python too.
No success trying to create the ScheduleFilter with the OOTB Node
Neither null nor parameterElement worked as Input
What I found out / tried so far:
In the Revit API Docs [ScheduleFilter Class (revitapidocs.com)] there are 5 Constructor Methods listed and I assume that the OOTB Node newer calls the 2nd Method with just Field and Fitler Type and therefore its not possible to create a Filter with the criteria HasParameter (any other thoughts or infos on this?)
I have found out about a difference between Wrapped and Unwrapped elements and some ToDSType Method “thingy”. Although I am not really sure how to handle that yet. Anyone can be of help here?