ifcopenshell.util.selector#

Module Contents#

ifcopenshell.util.selector.filter_elements_grammar#
ifcopenshell.util.selector.format_grammar#
ifcopenshell.util.selector.get_element_grammar#
class ifcopenshell.util.selector.FacetTransformer(ifc_file, elements)#

Bases: lark.Transformer

attribute(self, args)#
classification(self, args)#
compare(self, element_value, comparison, value)#
comparison(self, args)#
entity(self, args)#
facet_list(self, args)#
get_container_tree(self, container)#
get_results(self)#
group(self, args)#
instance(self, args)#
keys(self, args)#
location(self, args)#
material(self, args)#
prop(self, args)#
property(self, args)#
pset(self, args)#
query(self, args)#
type(self, args)#
value(self, args)#
class ifcopenshell.util.selector.FormatTransformer#

Bases: lark.Transformer

ESCAPED_STRING(self, args)#
NUMBER(self, args)#
concat(self, args)#
format_length(self, args)#
function(self, args)#
imperial_length(self, args)#
lower(self, args)#
metric_length(self, args)#
round(self, args)#
start(self, args)#
substr(self, args)#
title(self, args)#
upper(self, args)#
class ifcopenshell.util.selector.GetElementTransformer#

Bases: lark.Transformer

ESCAPED_STRING(self, args)#
key(self, args)#
keys(self, args)#
quoted_string(self, args)#
regex_string(self, args)#
start(self, args)#
unquoted_string(self, args)#
class ifcopenshell.util.selector.Selector#
classmethod filter_element(cls, element, element_value, comparison, value, is_regex=False)#
classmethod filter_elements(cls, elements, filter_rule)#
classmethod get_class_selector(cls, class_selector)#
classmethod get_element_value(cls, element, keys)#
classmethod get_group(cls, group)#
classmethod get_guid_selector(cls, guid_selector)#
classmethod get_query(cls, query)#
classmethod get_selector(cls, selector)#
classmethod parse(cls, ifc_file, query, elements=None)#
classmethod parse_filter_query(cls, filter_query)#
classmethod parse_inverse_relationship(cls, elements, inverse_relationship)#
ifcopenshell.util.selector.filter_elements(ifc_file, query, elements=None, edit_in_place=False)#
ifcopenshell.util.selector.format(query)#
ifcopenshell.util.selector.get_element_value(element, query)#
ifcopenshell.util.selector.set_element_value(ifc_file, element, query, value)#