Andrej730
2f554db54b
owner.remove_person to remove IfcInventory in ifc2x3
2024-05-13 18:01:17 +05:00
Andrej730
76e6c63a01
ifc2x3 tests - prevent using removed user/application
...
When some test was creating an element and then removing it, it would also remove user and application as they wasn't used anywhere else.
`ifcopenshell.util.element.remove_deep2(file, history)` we use in every api for element deletion can possibly remove user and application which can be unsafe if `get_user` is returning some specific entity that then will become invalid.
Also fixed tests breaking due ifcownerhistory and user/application appearing in ifc2x3.
2024-05-13 18:01:16 +05:00
Dion Moult
811a908cc3
More segfault fixes in test suite (maybe order matters only on Linux?)
2024-05-11 19:01:57 +10:00
Dion Moult
cd2570cdbb
Fix #4649 . Bug where editing property set template enumerations didn't clean up properly.
2024-05-11 15:18:18 +10:00
Dion Moult
8e6c372a4f
Fix ability to run tests and segfaulting test
2024-05-11 15:00:30 +10:00
Andrej730
d2a708fcc4
fix bug in ifc2x3 tests bootstrap
...
it was creating new applications and users every time `ifcopenshell.api.owner.settings.get_user` or `ifcopenshell.api.owner.settings.get_application` was called
2024-05-10 19:18:09 +05:00
Andrej730
1e630ede08
ifc2x3 tests
2024-05-10 19:18:09 +05:00
Andrej730
8ffb77551f
more tests for ifc2x3
2024-05-09 18:15:49 +05:00
Andrej730
359dab573b
document.remove_information to support ifc2x3 #4636
2024-05-09 14:02:10 +05:00
Andrej730
c5a7a8680e
fix removing references in ifc2x3 #4636
2024-05-08 18:18:03 +05:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Andrej730
ac29e152bb
project.unassign_declaration - support batching #4474
2024-05-03 16:28:10 +05:00
Andrej730
de690a385c
project.assign_declaration - support batching #4474
2024-05-03 16:28:10 +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
9a9be821d1
constraint.unassign_constraint - support batching #4474
2024-04-16 15:17:49 +05:00
Andrej730
c808382154
constraint.assign_constraint - support batching #4474
2024-04-16 15:17:49 +05:00
Andrej730
f1f8b3da6b
spatial.dereference_structure - support batching #4474
2024-04-16 15:17:48 +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
5da68721d6
document.unassign_document - support batching #4474
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
1f605484d9
library.unassign_reference - 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
144831f9ee
classification.remove_reference - support batching #4474
2024-04-15 17:23:24 +05:00
Andrej730
d6e69bd6e9
classification.add_reference - support batching #4474
2024-04-15 17:23:14 +05:00
Andrej730
7d6fd03eb4
rename tests for consistency with api
2024-04-15 17:21:10 +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
eb46de9658
material.unassign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
59cc9c0a16
material.assign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
38a73d6510
ifcpatch - add ifc2x3 tests and test for MergeDuplicateTypes
2024-04-12 17:41:36 +05:00
Andrej730
e66ac3d7db
system.unassign_system - support batching #4474
2024-04-11 17:50:31 +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
49e7abb4dc
type.unassign_type - support batching #4474
2024-04-11 17:09:41 +05:00
Andrej730
5098550399
assign_type not to remap if it's type was assigned previously
2024-04-11 17:09:41 +05:00
Andrej730
39433fb5a5
remove unused lines from tests
2024-04-11 17:09:41 +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
c2840d92c2
fix test files names
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
Andrej730
e69597f72b
typing
2024-04-10 18:45:36 +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