Andrej730
3860884db3
bonsai other ifcopenshell packages #5178
2024-08-14 16:49:34 +05:00
Dion Moult
a6286293d8
Run black on IOS-Python
2024-07-26 12:00:57 +10:00
Dion Moult
04365053a8
Fix deep purge of unit when converting units and fix bug where unit was removed if map unit was the same as the project unit
2024-07-12 22:48:23 +10:00
Dion Moult
c79e490d6d
Add test for fix in f56bae14
2024-07-12 21:57:29 +10:00
Dion Moult
e28b4d40ab
Converting project length units now intelligently preserves map unit and coordinate operation scale.
2024-07-11 23:10:24 +10:00
Andrej730
deb0b3482b
IfcHeaderExtractor tests
2024-07-01 18:26:03 +05:00
Dion Moult
0d401c9272
Fix bug where migrating length units didn't change properties. Unit utility for checking attribute types now considers select types too
...
Changing properties is very critical for IFC2X3 georeferencing which is stored in a pset.
2024-06-29 17:04:27 +10:00
Dion Moult
07060fc769
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
2024-06-28 12:36:31 +10:00
Dion Moult
7a36c05c30
Implement WCS consideration in XYZ <-> ENH conversions.
2024-06-24 18:21:06 +10:00
Dion Moult
03ee826e67
Add tests for xaxis and yaxis angle conversions
...
This tricked me today, the "XAxis" and "YAxis" vectors are from different perspectives (yikes!). XAxis is from the perspective of grid north, and YAxis is from the perspective of project north. I'm following this convention because that's what buildingSMART docs do but just FYI they serve two different purposes!
2024-06-23 22:23:48 +10:00
Dion Moult
3c48cfbc19
Add support for IfcRigidOperation and IfcMapConversionScaled in API
2024-06-22 21:59:09 +10:00
Dion Moult
a6c3ae8446
Typing and update geolocation conversion utils to follow IFC4X3 rules about unit scaling
2024-06-22 15:52:00 +10:00
Dion Moult
d0373da0ad
Update XYZ <-> ENH geolocation conversion after the clarifications made on how to handle scale in IFC4X3
2024-06-22 14:47:42 +10:00
Dion Moult
f0a19cb054
Fix #4815 . Purge deprecated old selector syntax.
2024-06-07 20:08:11 +10:00
Dion Moult
2ea3fe4ab9
Fix qto bug where cubic meter units are incorrectly converted.
2024-06-03 22:49:40 +10:00
Dion Moult
6e30cd2ba7
Fix #4638 . You can now filter by parent (in the spatial hierarchy)
2024-06-01 15:10:45 +10:00
Dion Moult
128ffc8fd7
Fix bug where selector didn't handle "not equals" correctly for locations or groups
2024-06-01 14:53:55 +10:00
Dion Moult
8403c32e76
Adjust selector's behaviour to use the elements argument as a filtering subset
...
This was always the original intention, but never worked as designed. This is so that you don't need to filter the entire file (which can be huge).
2024-05-28 17:30:01 +10:00
Dion Moult
9a59b8cdae
Material psets now include category-specific psets and docstrings
...
Previously it was not possible to get concrete / steel material psets. Yikes!
2024-05-26 11:23:08 +10:00
Andrej730
25c1a14e64
set_element_value - pass attr value to the next part of the query #4495
...
E.g. previously set_element_value with query "material.item.Material.Name" would fail with error "Material property is expecting an IFC entity and not a string".
But now it will detect that "Material" property is not a last key in the query and will pass `.Material` value forward and try to set it's `.Name` attribute with value.
The main goal is to make sure get_element_value and set_element_value would have a same result for same queries.
2024-05-17 17:31:01 +05:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Andrej730
716a33f347
convert_file_length_units - fix issue converting to imperial units
...
ifcpatch ConvertLengthUnit - change used units from plural to singular names, to make it consistent across the api
more test coverage - test converting to more units and back from them
2024-04-24 15:15:30 +05:00
Andrej730
1c729a74d1
util.unit to support converting aggregate of aggregates
2024-04-24 14:12:13 +05:00
Andrej730
9da4215bac
ifcopenshell.util.selector.filter_elements - inherited predefined types
...
mentioned by @theoryshaw on osarch - https://community.osarch.org/discussion/comment/20126/#Comment_20126
2024-04-19 16:05:33 +05:00
Andrej730
8ac0d22a95
spatial.reference_structure - support batching #4474
2024-04-16 15:17:48 +05:00
Andrej730
96b0a241d9
add tests for get_referenced_structures
2024-04-15 17:24:31 +05:00
Andrej730
ff76850a54
ifcopenshell.util.element.get_structure_referenced_elements
2024-04-15 17:24:31 +05:00
Andrej730
097f44284f
document.assign_document - support batching #4474
2024-04-15 17:24:31 +05:00
Andrej730
81dcad6a14
library.assign_reference - support batching #4474
2024-04-15 17:24:31 +05:00
Andrej730
03af1013a0
add tests for util.element.get_referenced_elements
2024-04-15 17:23:25 +05:00
Andrej730
d6e69bd6e9
classification.add_reference - support batching #4474
2024-04-15 17:23:14 +05:00
Andrej730
919dcbe2d9
black format
2024-04-15 14:47:32 +05:00
Dion Moult
8a62558575
Fix #4484 . Clarify inheritance rules of predefined types.
2024-04-15 09:27:58 +10:00
Andrej730
59cc9c0a16
material.assign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
6b48e8b4b9
system.assign_system - support batching #4474
2024-04-11 17:50:31 +05:00
Andrej730
fa0dbac914
new util method ifcopenshell.util.element.get_groups
2024-04-11 17:50:30 +05:00
Andrej730
df4943205a
type.assign_type - support batching #4474
2024-04-10 18:58:44 +05:00
Andrej730
90bb2f0e16
unify tests for ifc4 and ifc2x3
2024-04-10 18:45:37 +05:00
Andrej730
81ff9c168e
nest.assign_object to support ifc2x3
2024-04-10 18:45:37 +05:00
Andrej730
239ab5b587
get_pset() fix bug getting inherited psets with psets_only/qtos_only = True
2024-04-10 18:45:37 +05:00
Dion Moult
de744dddda
Fix #4290 . You can now format custom thousands separators and decimal separators in IfcCSV.
2024-04-10 17:32:39 +10:00
Dion Moult
bee1e21f0e
Fix #4490 . Fix fundamental bug where get_pset would return none for inherited props with a boolean False value.
2024-04-10 12:57:52 +10:00
Andrej730
965a45d65b
ifcopenshell.util.element.get_nest test
2024-04-09 18:33:26 +05:00
Andrej730
cd11d2de27
aggregate.assign_object - support batching #4474
2024-04-08 17:49:48 +05:00
Andrej730
7ecec973dd
layer.assign_layer - support batching #4474
2024-04-08 14:51:07 +05:00
Andrej730
109787d869
spatial.assign_container - support batching #4474
2024-04-05 17:28:30 +05:00
Dion Moult
8d7b293381
Fix #4305 . Bug where importing spreadsheets into IFC didn't intelligently cast attribute data types
2024-03-29 20:37:34 +11:00
Andrej730
6d6010be3b
typing
2024-03-21 11:32:53 +05:00
Andrej730
c35cdcfcad
util.selector.set_element_value to work w/o preassigned placement #4439
2024-03-19 17:45:21 +05:00
Andrej730
a755ec99f9
small fix
2024-03-18 17:08:39 +05:00