ifcopenshell.simple_spf.parser.file

Module Contents

class ifcopenshell.simple_spf.parser.file.file(result: ifcopenshell.simple_spf.parser.parse.ParseResult)

A somewhat compatible interface (but very limited) to ifcopenshell.file

by_id(id: int) → ifcopenshell.simple_spf.parser.transformer.entity_instance

Return an IFC entity instance filtered by IFC ID.

Parameters:

id (int) – STEP numerical identifier

Raises:

RuntimeError – If id is not found or multiple definitions exist for id.

Return type:

entity_instance

by_type(type: str) → list[ifcopenshell.simple_spf.parser.transformer.entity_instance]

Return IFC objects filtered by IFC Type and wrapped with the entity_instance class. :rtype: list[entity_instance]

data_
property header
header_
property mvd
property schema: str

General IFC schema version: IFC2X3, IFC4, IFC4X3.

property schema_identifier: str
property schema_version: tuple[int, int, int, int]

Numeric representation of the full IFC schema version.

E.g. IFC4X3_ADD2 is represented as (4, 3, 2, 0).

ifcopenshell.simple_spf.parser.file.open(fn, only_header=False) → file