C# Class Revit.SDK.Samples.ViewFilters.CS.FilterData

This class used to represents data for one API filter. It consists of BuiltInCategory and filter rules
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
FilterData ( Autodesk doc, ICollection categories, ICollection filterRules ) : System

Create sample custom FilterData with specified categories and FilterRuleBuilder

FilterData ( Autodesk doc, ICollection categories, ICollection filterRules ) : System

Create sample custom FilterData with specified category id and FilterRuleBuilder

GetCategoryIds ( ) : IList

Get BuiltInCategory Ids of filter

SetNewCategories ( ICollection newCatIds ) : bool

Set new categories, this method will possibly update existing criteria

If someone parameter of criteria cannot be supported by new categories, the old criteria will be cleaned and set to empty

Method Details

FilterData() public method

Create sample custom FilterData with specified categories and FilterRuleBuilder
public FilterData ( Autodesk doc, ICollection categories, ICollection filterRules ) : System
doc Autodesk Revit active document.
categories ICollection BuilInCategories of filter.
filterRules ICollection FilterRuleBuilder set of filter.
return System

FilterData() public method

Create sample custom FilterData with specified category id and FilterRuleBuilder
public FilterData ( Autodesk doc, ICollection categories, ICollection filterRules ) : System
doc Autodesk Revit active document.
categories ICollection BuilInCategory ids of filter.
filterRules ICollection FilterRuleBuilder set of filter.
return System

GetCategoryIds() public method

Get BuiltInCategory Ids of filter
public GetCategoryIds ( ) : IList
return IList

SetNewCategories() public method

Set new categories, this method will possibly update existing criteria
If someone parameter of criteria cannot be supported by new categories, the old criteria will be cleaned and set to empty
public SetNewCategories ( ICollection newCatIds ) : bool
newCatIds ICollection New categories for current filter.
return bool