mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
See #6570. Add a button to refresh an imported csv file
Now the imported csv filepath is stored so it is possible to refresh the cost schedule without the need of reimporting it
This commit is contained in:
committed by
Massimo Fabbro
parent
0608f92bc4
commit
f8e52c8a12
@@ -127,6 +127,10 @@ class Csv2Ifc:
|
||||
self.parse_csv()
|
||||
self.create_ifc()
|
||||
|
||||
def refresh(self) -> None:
|
||||
self.parse_csv()
|
||||
self.create_cost_items(self.cost_items)
|
||||
|
||||
def parse_csv(self) -> None:
|
||||
"""Fill ``headers`` and ``cost_items`` based on data from csv file."""
|
||||
self.cost_items = []
|
||||
|
||||
Reference in New Issue
Block a user