RVTDocs.com

UsesLevelFiltering

Method
Description:
This function checks if a parameter uses level filtering.
Remarks:
When level-filtering parameters are compared, the comparisons will first compare the values of the levels' elevations, then compare the levels' names, and finally the levels' element ids to rank and sort the levels.
Syntax
public static bool UsesLevelFiltering(
	Document doc,
	ElementId parameterId
)
Parameters
Parameter Type Description
doc Autodesk.Revit.DB.Document The document which owns the parameter.
parameterId Autodesk.Revit.DB.ElementId The id of the parameter that will be tested to see if it uses level filtering.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentNullException True if the parameter uses level filtering, false otherwise.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null