title: Element Select Filter Setting description: Class containing settings for filtering elements during element selection, such as:
ElementSelectFilterSetting
Canonical path: NemAll_Python_IFW_Input.ElementSelectFilterSetting
Class containing settings for filtering elements during element selection, such as:
- which layer to consider (active, passive, both)
- which document to consider (active, passive, both)
- query for specific element types
Methods:
-
Clear–Reset the settings
-
GetLayerSelectType–Get the layer selection type
-
IsBaseClassType–Check, whether the element type is a base class type
-
IsClear–Get the clear state
-
IsPointSelect–Get the point select state
-
IsSelectPassiveInfoElement–Get the selection state of a passive info element
-
SelectPassiveInfoElement–Allow to select passive info element if no active element was found
-
SetArchitectureFilterQuery–Set a prefabricated filter for all architecture elements
-
SetAssoFilterQuery–Set a prefabricated filter for all associative view elements
-
SetDocumentLayerFilter–Set the document and layer filter
-
SetDocumentSelectType–Set the selection mode for the document (active, passive or all documents)
-
SetLayerSelectType–Set the layer selection type
-
SetPointSelect–Set the point select state
-
__init__–Overloaded function. See individual overloads.
Attributes:
-
LayerSelectType(eLayerSnoopType) –Get the layer selection type
GetLayerSelectType
GetLayerSelectType() -> eLayerSnoopType
IsBaseClassType
staticmethod
IsBaseClassType(typeID: GUID) -> bool
Check, whether the element type is a base class type
Parameters:
-
typeID(GUID) –Element type ID
Returns:
-
bool–Element type is a base class type: true/false
IsClear
Get the clear state
Returns:
-
bool–true, if the members contain default values
IsPointSelect
Get the point select state
Returns:
-
bool–Point selection is active: true/false
IsSelectPassiveInfoElement
Get the selection state of a passive info element
Returns:
-
bool–Allow to select passive info element if no active element was found: true/false
SelectPassiveInfoElement
Allow to select passive info element if no active element was found
SetArchitectureFilterQuery
Set a prefabricated filter for all architecture elements
Parameters:
-
positive(bool, default:True) –if the filter will true for architecture elements otherwise the filter will be false for architecture elements
SetAssoFilterQuery
Set a prefabricated filter for all associative view elements
Parameters:
-
positive(bool, default:True) –if the filter will true for associative view elements otherwise the filter will be false for associative view elements
SetDocumentLayerFilter
Set the document and layer filter
Parameters:
-
bSnoopAllElements(bool) –Snoop all elements: true/false
SetDocumentSelectType
SetDocumentSelectType(documentSnoopType: eDocumentSnoopType)
Set the selection mode for the document (active, passive or all documents)
Parameters:
-
documentSnoopType(eDocumentSnoopType) –Selection mode for the document (active, passive or all documents)
SetLayerSelectType
SetLayerSelectType(layerSnoopType: eLayerSnoopType)
Set the layer selection type
Parameters:
-
layerSnoopType(eLayerSnoopType) –Type of the allowed layers for the selection
__init__
overloaded
Construct the filter with default settings:
- filter only active layers (eSnoopActiveLayers)
- filter only active documents (eSnoopActiveDocuments)
- query is empty (all elements can be selected)
Construct the filter with an empty element type query (all type of elements can be selected)
Parameters:
-
bSnoopAllElements(bool) –True will consider elements on both active and passive layers and documents. False will consider elements on active layers and documents only
__init__(filter: SelectionQuery, bSnoopAllElements: bool)
Construct the filter with a custom element type query
Parameters:
-
filter(SelectionQuery) –Query for specific elements to search for
-
bSnoopAllElements(bool) –True will consider elements on both active and passive layers and documents. False will consider elements on active layers and documents only
__init__(
filter: SelectionQuery,
documentSnoopType: eDocumentSnoopType = eSnoopActiveDocuments,
layerSnoopType: eLayerSnoopType = eSnoopActiveLayers,
)
Constructor
default value for eObjectSelectType == SEL_ALL
Parameters:
-
filter(SelectionQuery) –Filter for the type of the object to search for
-
documentSnoopType(eDocumentSnoopType, default:eSnoopActiveDocuments) –Selection mode for the document (active, passive or all documents)
-
layerSnoopType(eLayerSnoopType, default:eSnoopActiveLayers) –Selection mode for the layer (active, passive or all layers)
__init__(selectSetting: ElementSelectFilterSetting)