#1912 apply also on types

This commit is contained in:
Thomas Krijnen
2021-12-02 11:39:28 +01:00
parent c52f851d79
commit dbc6f521fe
2 changed files with 16 additions and 1 deletions
@@ -54,7 +54,7 @@ _method_dict = {}
for nm in ifcopenshell_wrapper.schema_names():
schema = ifcopenshell_wrapper.schema_by_name(nm)
for decl in schema.declarations():
if isinstance(decl, ifcopenshell_wrapper.entity):
if hasattr(decl, "argument_types"):
fq_name = ".".join((nm, decl.name()))
# get type strings as reported by IfcOpenShell C++