C# 클래스 Revit.SDK.Samples.ViewFilters.CS.FilterData

This class used to represents data for one API filter. It consists of BuiltInCategory and filter rules
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

FilterData() 공개 메소드

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.
리턴 System

FilterData() 공개 메소드

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.
리턴 System

GetCategoryIds() 공개 메소드

Get BuiltInCategory Ids of filter
public GetCategoryIds ( ) : IList
리턴 IList

SetNewCategories() 공개 메소드

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.
리턴 bool