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
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 = eDocumentSnoopType.eSnoopActiveDocuments,
layerSnoopType: eLayerSnoopType = eLayerSnoopType.eSnoopActiveLayers,
)
Construct the filter with a custom element type query and separate search settings for documents and layers.
Parameters:
-
filter
(SelectionQuery
) –Filter for the type of the object to search for
-
documentSnoopType
(eDocumentSnoopType
, default:eSnoopActiveDocuments
) –What documents to consider (active, passive or both)
-
layerSnoopType
(eLayerSnoopType
, default:eSnoopActiveLayers
) –What layers to consider (active, passive or both)
__init__(selectSetting: ElementSelectFilterSetting)