Public Function GetFilters() As List(Of FilterDefinition)
public List<FilterDefinition> GetFilters()
Return Value
List{FilterDefinition}
Public Function GetFilters() As List(Of FilterDefinition)
public List<FilterDefinition> GetFilters()
{
// Note: call within QueuedTask.Run()
{
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;
}
}
{
// Note: call within QueuedTask.Run()
{
//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 Home, Pro, Enterprise (64 bit)