mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 03:19:53 +00:00
typing
This commit is contained in:
+20
-12
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user