Commit Graph

1552 Commits

Author SHA1 Message Date
sebphi 0f33c000fb Fix import of ifcopenshell.util.unit in Python <3.10 #4520 2024-04-18 10:48:23 +02:00
Andrej730 eebcc48238 group.unassign_group - support batching #4474 2024-04-18 10:48:23 +02:00
Andrej730 df9a306730 spatial.unassign_container - support batching #4474 2024-04-18 10:48:22 +02:00
Andrej730 52995d1cdd spatial.assign_container - support batching #4474 2024-04-18 10:48:22 +02:00
Andrej730 443cd5187c typing 2024-04-18 10:48:22 +02:00
Dion Moult 95bfb5c6a1 Autodetect CSG representation types in shape builder 2024-04-18 10:48:22 +02:00
Dion Moult 9c11626893 Detect binary data types in util.attribute 2024-04-18 10:48:22 +02:00
Andrej730 e5cfe5cf3c ifcopenshell.validate to check unique guids (IfcRoot.UR1) 2024-04-18 10:48:21 +02:00
Andrej730 72011c2fbd typing 2024-04-18 10:48:21 +02:00
Andrej730 5c90b215ca validate.py - black format 2024-04-18 10:48:21 +02:00
Dion Moult 33f5db2e26 Use indices instead of WorkTimeDatesInterface
Checking start/end dates are done very, very often in date calculations (often looping through every day in a date range). So I'd prefer more opaque code but less overhead.
2024-04-18 10:48:06 +02:00
Dion Moult fcf5073726 See #4484. Editing predefined type attributes now enforces valid combinations of userdefined and object/element type 2024-04-18 10:48:06 +02:00
Dion Moult 81fdaea5f2 Fix #4323. Bug where running a filter could fail if you tried to compare values which had incompatible types. 2024-04-18 10:48:06 +02:00
Andrej730 258d38393f typing 2024-04-18 10:48:06 +02:00
Dion Moult 7e689f2456 Fix #4305. Bug where importing spreadsheets into IFC didn't intelligently cast attribute data types 2024-04-18 10:47:36 +02:00
Dion Moult 6875a98646 Optimise property / quantity checks for IDS and other purposes 2024-04-18 10:43:02 +02:00
Dion Moult 23f91c73af Clash detection features 2024-04-18 10:40:32 +02:00
Andrej730 7cfeaa6047 typing 2024-04-17 15:00:39 +02:00
Andrej730 ecc8832c46 typing and small refactor 2024-04-17 14:54:42 +02:00
Andrej730 cbc7271885 add_mesh_representation - option to force faceted breps 2024-04-17 14:54:42 +02:00
Andrej730 ac191ac71d typing 2024-04-17 14:54:42 +02:00
Andrej730 489e92da4e typing 2024-04-17 14:54:42 +02:00
Andrej730 acafc910f7 typing 2024-04-17 14:54:42 +02:00
Andrej730 088e1d07bf util.selector.set_element_value to work w/o preassigned placement #4439 2024-04-17 14:54:42 +02:00
Andrej730 7bdd382d06 util.selector.set_element_value ignore values within tolerance #4439 2024-04-17 14:54:42 +02:00
Andrej730 588a946fde typing 2024-04-17 14:54:41 +02:00
Andrej730 5ee0c4c967 ifccsv - support for assigning x/y/z coordinates from csv 2024-04-17 14:54:41 +02:00
Andrej730 9cb76a092f typing 2024-04-17 14:54:41 +02:00
Andrej730 5197e27b13 typing 2024-04-17 14:48:55 +02:00
Andrej730 886467dfd6 typing 2024-04-17 14:46:06 +02:00
Andrej730 edce320756 utils.filter_elements docs and tests 2024-04-17 14:46:06 +02:00
Andrej730 96cc24c820 typing 2024-04-17 14:46:06 +02:00
Andrej730 8d1559b486 small fixes after d209cc9ff, added a test 2024-04-17 14:46:06 +02:00
Andrej730 38bbaa0a8f util.unit.py - black format 2024-04-17 14:46:06 +02:00
Andrej730 a4a965e7ab more typing 2024-04-17 14:46:06 +02:00
Geert Hesselink 15dd93b9fb Redundant closing symbol ' (#4413)
* scale placeangleunit

* add radian si_conversions

* return conversion value of planeangleunit

* Update unit.py

* redundant closing

* redundant closing
2024-04-17 14:46:06 +02:00
Geert Hesselink 6db45c0965 Scale placeangelunit unit type (#4406)
* scale placeangleunit

* add radian si_conversions

* return conversion value of planeangleunit

* Update unit.py
2024-04-17 14:46:06 +02:00
Andrej730 036a88de54 commented out apil.run settings serialization as it's not used currently 2024-04-17 14:46:06 +02:00
Andrej730 6cbc0e0564 small fixes 2024-04-17 14:46:06 +02:00
Andrej730 0abea81e6b fix error in typing 2024-04-17 14:46:06 +02:00
Andrej730 ad87d31e6a shape_builder.create_axis2_placement_3d utility method and docs 2024-04-17 14:45:15 +02:00
Andrej730 ac4669f841 fix duplicated ifcstyleditems using append_asset
since we don't use `file.add` to add inverse items and we use `file.create_entity` it was duplicating new elements, added optional parameter that makes it possible to track already added relationships between `append_asset`s.
2024-04-17 14:42:55 +02:00
Andrej730 5d370e8e2f fix typing loading issues 2024-04-17 14:42:55 +02:00
Andrej730 1d7c882231 append_asset - keep preexisting contexts valid #4280
issue occurred with ifcpatch ExtractElements - it was adding project from other ifc file (with the contexts) and then adding some elements from it using `append_asset`. During `append_asset` it was considering existing context with the duplicated one and was partially purging it.
2024-04-17 14:42:55 +02:00
Andrej730 cbf95b2080 typing 2024-04-17 14:42:55 +02:00
Dion Moult 9de06fbd6e Fix #4300. You can now select spatial elements by their location too. 2024-04-17 14:42:54 +02:00
Dion Moult 0c5a173de7 Fix #4340. Indicate user needs to setup IFC2X3 user/app when using API directly. 2024-04-17 14:42:54 +02:00
Andrej730 69767a7045 type.py - some typing 2024-04-17 14:41:52 +02:00
Andrej730 a03f62c97e fix error removing pset from material or profile 2024-04-17 14:41:52 +02:00
Andrej730 a86ac68e0c Fix #4365
Allowing to add new properties with None values if should_purge is not set to True (and it's False by default)
2024-04-17 13:41:18 +02:00