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
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

FilterData() public méthode

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.
Résultat System

GetCategoryIds() public méthode

Get BuiltInCategory Ids of filter
public GetCategoryIds ( ) : IList
Résultat IList

SetNewCategories() public méthode

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.
Résultat bool