mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Use schema_identifier to get IFC4X3 schema more precisely
This commit is contained in:
@@ -46,9 +46,7 @@ class PsetQto:
|
||||
# fmt: on
|
||||
|
||||
def __init__(self, schema_identifier: str, templates=None) -> None:
|
||||
if schema_identifier == "IFC4X3":
|
||||
schema_identifier = "IFC4X3_ADD2"
|
||||
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema_identifier)
|
||||
self.schema = ifcopenshell.schema_by_name(schema_identifier)
|
||||
if not templates:
|
||||
folder_path = pathlib.Path(__file__).parent.absolute()
|
||||
path = str(folder_path.joinpath("schema", self.templates_path[schema_identifier]))
|
||||
|
||||
Reference in New Issue
Block a user