This commit is contained in:
Andrej730
2024-05-06 17:48:25 +05:00
parent 54a3730c20
commit a9d785c28f
4 changed files with 47 additions and 27 deletions
+20 -12
View File
@@ -61,20 +61,20 @@ class IfcCsv:
def export(
self,
ifc_file,
elements,
ifc_file: ifcopenshell.file,
elements: ifcopenshell.entity_instance,
attributes,
headers=None,
output=None,
format=None,
should_preserve_existing=False,
include_global_id=True,
delimiter=",",
null="-",
empty="",
bool_true="YES",
bool_false="NO",
concat=", ",
should_preserve_existing: bool = False,
include_global_id: bool = True,
delimiter: str = ",",
null: str = "-",
empty: str = "",
bool_true: str = "YES",
bool_false: str = "NO",
concat: str = ", ",
sort=None,
groups=None,
summaries=None,
@@ -382,8 +382,16 @@ class IfcCsv:
return ["{}.{}".format(pset_qto_name, n) for n in results]
def Import(
self, ifc_file, table, attributes=None, delimiter=",", null="-", empty="", bool_true="YES", bool_false="NO"
):
self,
ifc_file: ifcopenshell.file,
table: str,
attributes: Optional[list[Union[str, None]]] = None,
delimiter: str = ",",
null: str = "-",
empty: str = "",
bool_true: str = "YES",
bool_false: str = "NO",
) -> None:
ext = table.split(".")[-1].lower()
if ext == "csv":