ifcopenshell.util.mvd_info
¶
Module Contents¶
- class ifcopenshell.util.mvd_info.AutoCommitList(iterable, callback, formatter=None)¶
Bases:
list
ensures keyword attributes are written back to ifcopenshell.file.header
Initialize self. See help(type(self)) for accurate signature.
- append(item)¶
Append object to the end of the list.
- clear()¶
Remove all items from list.
- extend(iterable)¶
Extend list by appending elements from the iterable.
- insert(index, item)¶
Insert object before index.
- pop(index=-1)¶
Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
- remove(item)¶
Remove first occurrence of value.
Raises ValueError if the value is not present.
- class ifcopenshell.util.mvd_info.DictionaryHandler(initial_data, mvdinfo, keyword)¶
Bases:
dict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
Initialize self. See help(type(self)) for accurate signature.
- class ifcopenshell.util.mvd_info.MvdInfo(header)¶
- property comments¶
- property description: list[str]¶
- property exchange_requirements¶
- property keywords¶
- property options¶
- property view_definitions¶
- ifcopenshell.util.mvd_info.LARK_AVAILABLE = True¶
- ifcopenshell.util.mvd_info.mvd_grammar = Multiline-String¶
Show Value
""" start: entry+ entry: "ViewDefinition" "[" simple_value_list "]" -> view_definition | "Comment" "[" simple_value_list "]" -> comment | "ExchangeRequirement" "[" other_keyword "]" -> exchangerequirement | "Option" "[" other_keyword "]" -> option | GENERIC_KEYWORD "[" dynamic_option_word "]" -> dynamic_option GENERIC_KEYWORD: /[A-Za-z0-9_]+/ simple_value_list: value ("," value)* value_list_set: value_set (";" value_set)* value_set: set_name ":" simple_value_list set_name: /[A-Za-z0-9_]+/ value: /[A-Za-z0-9 _\.-]+/ other_keyword: /[^\[\]]+/ dynamic_option_word: /[^\[\]]+/ %import common.WS %ignore WS """