Andrej730
13be6ccd45
Sort imports
2025-12-19 18:53:14 +05:00
Massimo Fabbro
87283874a1
Add simple examples for ifc5d import from csv
2025-11-22 09:02:53 +01:00
Andrej730
9491096485
black .
2025-11-13 19:13:27 +05:00
kaplus
e8eb5e4d0a
Add continue statement to skip duplicate calculations
...
Skip general path to avoid duplicate calculations.
2025-11-12 13:14:38 +01:00
Andrej730
24bee01f01
black .
2025-11-03 18:33:34 +05:00
Ryan Schultz
7329c485ea
Fix quantify() regression where by_type queries and grouped iteration could apply QTOs to all entities in the model instead of the intended element subset.
2025-10-31 10:03:52 -05:00
Bruno Postle
90bf56d9ba
Fix ifc5d documentation
...
Documentation claimed that ODS/XLSX output was to a given filename, but
the code actually writes files with generated names in a folder.
(also create the folder if necessary for convenience)
2025-10-24 22:19:01 +01:00
Massimo Fabbro
ac5a44a962
See #6570 . Now it's possible to specify Description in csv import
...
Now it is possible to specify the column Description in the csv file in order to specify also the cost item description
2025-10-05 17:49:23 +02:00
Thomas Krijnen
b5b64d6c4a
ifc5d.quantify: lookup entity names directly; index into dict rather than iterate in simple cases
2025-09-15 18:29:58 +02:00
Andrej730
10e805b3f1
black .
2025-09-10 15:34:06 +05:00
Massimo Fabbro
e28979ceb7
See #6570 . Better column name for import csv.
...
Change column name for import rate from csv from Rate Cost Schedule to RateSchedule
2025-09-10 06:50:50 +02:00
Andrej730
a9c0c1f4ba
control.unassign_control to support batching
2025-09-09 15:42:32 +05:00
Andrej730
abfb56350d
control.assign_control to support batching
2025-09-09 15:42:32 +05:00
Massimo Fabbro
5400712a7a
Black
2025-09-06 07:20:48 +02:00
Massimo Fabbro
1dea8ca37b
See #6570.Keep ifc5d independent from Bonsai
2025-09-06 07:20:48 +02:00
Massimo Fabbro
25c0ed6759
Black
2025-09-04 16:33:03 +02:00
Massimo Fabbro
f75d629990
See #6570 . Now it is possible to define the rate in import csv
...
In order to assign the rate in the csv import, use the columns 'Rate cost schedule' and 'RateID'
2025-09-04 16:33:03 +02:00
carlopav
e00a865bce
Various fixes to IfcCostSchedule PDF export ( #6983 )
...
* IfcCostSchedue PDF export: changed Output type from off to auto
* Fixed currency value
* Fix summary total if no nested structure present
2025-08-04 08:46:20 +00:00
carlopav
dcf8329b04
Pdf ifc cost schedule export improvements ( #6884 )
...
* Export_IfcCostSchedule_to_PDF_improvements
* IfcCostSchedule CSV export: Added ItemIsASum column
New column in the ifc export that tracks if IfcCostItem is a sum, also added a new static method to the IfcDataGetter class.
* IfcCostSchedule CSV export: Added cost quantities column
Cost quantities are a serialsed list containing the name of the quantity and the quantity value.
* IfcCostScheduel PDF export: add options to fine tune export
New options include nested_structure_depth, should_print_cover, should_print_description, should_print_rates, should_print_summary, should_print_cost_ids.
Also pass project currency to typst (still not used).
Added footer with "proudly created with IfcOpenShell".
Updated Cover with formatting and IfcCostSchedule Description
2025-07-21 11:34:00 +05:00
Andrej730
0f3b570800
Fix get_segment_length bug with non-parametrized profiles ( f9c4b6a)
...
`settings` wasn't defined, so `create_shape` was always resulting in an error. Also, `create_shape` is returning `Triangulation` in this kind of cases, so there's no `.geometry`.
Also removed IfcCircleProfileDef if-check since it's covered by IfcParameterizedProfileDef.
2025-07-15 17:47:37 +05:00
carlopav
5f5c0b41d5
Basic infrastructure for IfcCostSchedule PDF export with typst ( #6860 )
2025-07-03 13:18:03 +00:00
Andrej
02d359d0e6
Fix Ruff UP035 (also deprecated annotation symbols)
2025-06-09 18:03:19 +05:00
Massimo Fabbro
eade620581
Add calculating functions for Qto_CourseBaseQuantities for IfcCourse elements
2025-05-31 14:57:46 +02:00
Andrej
1ab288de0b
ifc5d - fix <py3.11 compatibility issue ( 6499ac4)
2025-05-29 19:14:43 +05:00
Andrej
0663c5130a
typing
2025-05-29 19:14:42 +05:00
Andrej730
908bf02098
ifc5d - strip " Cost" suffix when importing csv
...
" Cost" is a suffix is added on export, so it makes to get rid of it on import.
2025-04-21 19:00:24 +05:00
Andrej730
c6176d364f
ifc5d - use filename for imported schedule name
...
So it will be in sync with how export works.
Removed non_sor_fields is unrelated - forgot to remove before.
2025-04-21 19:00:24 +05:00
Massimo Fabbro
266cc32336
Add calculating functions for earthworks
2025-04-21 10:48:00 +02:00
Massimo Fabbro
f8e52c8a12
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
2025-04-19 16:40:24 +02:00
Andrej730
917d28a7b1
ifc5d cost schedule export - guess unit from quantity type
2025-04-18 19:25:46 +05:00
Andrej730
bebaa4d1bd
ifc5d cost import - fix unexpected columns assigned as values
...
Mentioned in #5492 - id, index and lots of others were assigned as values at import.
2025-04-18 19:25:46 +05:00
Andrej730
93a4f4980a
Revert ddd7dff75e
...
I guess after all it's not very reliable idea since it's possible to have a cost schedule without quantities (even non-SoR) and it's giving users false assumptions that they don't need to worry about "Is Schedule of Rates" flag in some cases.
2025-04-18 19:25:46 +05:00
Andrej730
1e30eae1d7
ifc5d - continue refactor
2025-04-18 19:25:46 +05:00
Andrej730
85d8fa49ab
ifc5d - add examples for other formats
2025-04-17 19:07:20 +05:00
Andrej730
007af80234
ifc5d readme - add notes for possible missing columns
2025-04-17 18:55:41 +05:00
Andrej730
4cf6411a61
ifc5d.csv2ifc - add tests for sample files
2025-04-17 18:55:41 +05:00
Andrej730
37a0b3f6a9
Csv2Ifc - move arguments to init for a simpler setup
2025-04-17 18:55:41 +05:00
Andrej730
209caec49a
csv2ifc import - rename required column from hierarchy to index #5492
...
To prevent confusion with 'Hierarchy' column that's added on the export and make current and export compatible.
Indices now always start from 1 for consistency.
2025-04-17 18:55:41 +05:00
Andrej730
bebb29f486
ifc5d csv export - rename Description column to Name #5492
...
Because actually it is a name and this is the column name that csv2ifc expects.
2025-04-17 18:55:40 +05:00
Andrej730
deb6e3779e
ifc5d - refactor
2025-04-17 18:55:40 +05:00
Andrej730
9994fec571
ifc5d - fix bug exporting multiple csvs with the same name
2025-04-16 19:24:16 +05:00
Andrej730
b0aeabf2f6
ifc5d .csv cost schedule - save as unicode
...
Previously it was saved using Windows 1252 and importing it would fail with an error like so:
```
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 650: invalid start byte
```
2025-04-16 19:24:16 +05:00
Andrej730
ddd7dff75e
ifc5d csv2ifc - autodetect schedule of rates by the header structure
2025-04-16 19:24:16 +05:00
Andrej730
7acd13cb82
ifc5d readme - mention format examples
2025-04-16 19:24:15 +05:00
Andrej730
6499ac41cf
ifc5d typing and refactor
...
no functional changes
2025-04-16 19:24:15 +05:00
Andrej730
29de264b43
ifc5d - remove Qto_BodyGeometryValidation from ifc4x3 base qtos ( 6c04669)
...
As it's not part of base quantities and it would be unexpected for user if some additional qto would start calculating for every IfcProduct.
2025-04-07 16:20:22 +05:00
Andrej730
f4714d2012
ifc5d - avoid overriding results from previous queries after f63d6b8
2025-04-07 16:20:21 +05:00
Andrej730
8bfdabab80
ifc5d IfcOpenShell.calculate - warn on missing formulas
2025-04-07 16:20:21 +05:00
Massimo Fabbro
05be0f69bd
Fix #6305
...
Fix wrong calculation with blender engine for IfcFooting
2025-03-26 22:30:56 +01:00
Massimo Fabbro
212da8b6d6
fix #6271
...
Fix wrong length calculation with Blender Engine for IfcDoor and IfcWindows
2025-03-23 07:40:04 +01:00