public List<FilterDefinition> GetFilters()
Public Function GetFilters() As List(Of FilterDefinition)
Return Value
List{FilterDefinition}
public List<FilterDefinition> GetFilters()
Public Function GetFilters() As List(Of FilterDefinition)
//Must be called on the MCT //Creates a default filter on the building scene //var bsl = ...; var filter1 = bsl.CreateDefaultFilter(); var values = filter1.FilterBlockDefinitions[0].SelectedValues; //values will be a single value for the type //"CreatedPhase", value "New Construction" //There will be at least one filter after "CreateDefaultFilter()" call var filtersCount = bsl.GetFilters().Count;
//var bsl = ...; //Note: wire_frame_filters can be null in this example var wire_frame_filters = bsl.GetFilters().Where( f => f.FilterBlockDefinitions.Any( fb => fb.FilterBlockMode == Object3DRenderingMode.Wireframe)); //substitute Object3DRenderingMode.None to get blocks with a solid mode (default) //and... //fb.FilterBlockMode == Object3DRenderingMode.Wireframe && //fb.FilterBlockMode == Object3DRenderingMode.None //for blocks with both
Target Platforms: Windows 11, Windows 10