Commit Graph

1646 Commits

Author SHA1 Message Date
Dion Moult 33051c0139 Fix #4203. Fix bug where removing nested cost items left orphaned relationships. 2024-04-16 11:26:36 +02:00
c4rlosdias 43259c0124 Added more comparisons in search 2024-04-16 11:26:36 +02:00
sennhvi fd657f2b6f Update geometry_processing.rst
Add an usage example of the parameter include  for the Geometry Iterator
2024-04-16 11:26:36 +02:00
Dion Moult f55b7d439f Fix bug where updating type text literals didn't propagate and formatting rounding null values wasn't handled. 2024-04-16 11:26:35 +02:00
Dion Moult 009d1a0aba Add support for groups in selection queries 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) 63e3786354 add conversion based unit symbols 2024-04-16 11:25:27 +02:00
Thomas Krijnen aca4b4f957 Generalize shortened file.schema attribute 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) a2eef4995c fix resource cost calculation 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) e58495161b Record formula and resource name for cost values when calculating resource cost 2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass) bf2027ff96 fix cost value calculation when using parent cost 2024-04-16 11:25:27 +02:00
Thomas Krijnen ebd995d98d Update src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst 2024-04-16 11:17:58 +02:00
wangsenhui c6f7417ce8 add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
wangsenhui 6084354932 add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
wangsenhui 73f81b18fd add geometry processing with multiple representations example 2024-04-16 11:17:58 +02:00
Andrej730 3008599eec Clean up IfcIndexedColourMap removing representation #4138
Because we wasn't removing colour map, remove_representation was producing orphaned IfcPolygonalFaceSet that were referred by colour map.
2024-04-16 11:17:07 +02:00
Andrej730 6b7936c0ce Fix typo in 92cf0d9 2024-04-16 11:17:06 +02:00
Andrej730 0fb2a7e5ec remove_representation not to leave brokens refs with batch_remove #4138 2024-04-16 11:17:06 +02:00
Sigma Dimensions (Yass) 38502734e8 consider unit basis for calculating resource costs #4122 2024-04-16 11:17:06 +02:00
krande f73a438d38 add test and update ci 2024-04-16 11:16:40 +02:00
krande 680f075b1b remove ifc2x3 conditional in conversion utility 2024-04-16 11:16:08 +02:00
krande 5a61173052 update name of function to make its purpose more clear 2024-04-16 11:16:08 +02:00
krande 187da13de8 update unit_assignment 2024-04-16 11:16:08 +02:00
krande 5c75cc6a39 initial proposal for updating units conversion 2024-04-16 11:16:08 +02:00
Sigma Dimensions (Yass) 7f4ab61b8a fix displaying derived task durations 2024-04-16 11:16:08 +02:00
Dion Moult 83a12ea7f9 Nesting collections only generate for element nesting, not port nesting 2024-04-16 11:16:07 +02:00
Andrej730 eb30b30186 style.edit_surface_style to support editing IfcSurfaceStyleLighting
It was failing because api method wasn't supporting IfcColourRgb attributes edit in general but only for IfcSurfaceStyleShading.SurfaceColour
2024-04-16 11:16:07 +02:00
Andrej730 b6b0e958b5 style.add_surface_texture to work without blender material provided 2024-04-16 11:16:07 +02:00
Bruno Postle 343589f1c0 Fix Clipping divide error (reported in #4057) 2024-04-16 11:16:07 +02:00
Dion Moult e40336be2a Fix #4086. Add support for non predefined bSDD pset and qto values. 2024-04-16 11:12:08 +02:00
Andrej730 32c1f20eb3 style.edit_surface_style - fix crash setting attribute to None
Occured on setting IfcColourOrFactor attribute to None (e.g. DiffuseColour).
2024-04-16 11:12:08 +02:00
Martin15135215 55227daf17 add cff for ifcopenshell-python 2024-04-16 11:12:08 +02:00
Ryan Schultz b847656e69 Added classification to selector 2024-04-16 11:10:59 +02:00
Dion Moult 401db55c55 Implement support for managing nest hosts and components. 2024-04-16 11:10:58 +02:00
Andrej730 661d6bcfe7 fixed typo 2024-04-16 11:09:32 +02:00
Thomas Krijnen f50509d2d4 occ_utils.py - #1037 2024-04-16 11:09:32 +02:00
MicheleBenedetti aa33148fe5 mistype-fix 2024-04-16 11:09:32 +02:00
Dion Moult f071c5746b Fix #4057. Data objects for the API are now in util.data instead of mixed into the shape builder utility and only depends on numpy. 2024-04-16 11:09:32 +02:00
Bruno Postle a2a7d56691 minor documentation typo fix 2024-04-16 11:09:32 +02:00
Dion Moult b4bfc6e979 Fix #4057. Move clipping info dataclass to util.shape_builder 2024-04-16 11:09:32 +02:00
Dion Moult d6142d90a9 Fix #3996. Reassigning occurrences or types now also reassigns the correlating occurrence or type. 2024-04-16 11:09:28 +02:00
Dion Moult 4f8a6c47a1 Fix #4052. Bug where invalid plane was generated due to missing X axis. 2024-04-16 11:09:28 +02:00
Dion Moult ac42318a64 Fix #3974. Bug where orphaned histories would be left in API remove operations. 2024-04-16 11:09:28 +02:00
Kristoffer Andersen 4f655870b3 Update installation.rst
add more information about conda package installation
2024-04-16 11:09:28 +02:00
Dion Moult d0cab0821d See #3974. WIP review to ensure history removal in API. 2024-04-16 11:09:28 +02:00
Dion Moult 267505bd99 Fix #4034. Bug where abstract pset template applicabilities didn't apply to occurrences as well as types. 2024-04-16 11:09:24 +02:00
Bruno Postle c846edd896 Revert 1d972a6 as no datetime.UTC on CI server 2024-04-16 11:09:24 +02:00
Bruno Postle 98cba98f7d fix python 3.12 utcnow() deprecation warning
Warning is:

/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/create_file.py:61:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
2024-04-16 11:09:24 +02:00
Bruno Postle 4b074fc79e python api documentation fix 2024-04-16 11:09:24 +02:00
Andrej730 518f054cbd edit_object_placement optimization for objects with subchildren #4035
1) We were iterating over same subchildren 2 or more times.
2) There is no need to change subchildren position at all since their parent position is already adjusted.

Explained here in detail - https://github.com/IfcOpenShell/IfcOpenShell/issues/4035#issuecomment-1822824352
2024-04-16 11:05:27 +02:00
Andrej730 6fd629f707 Fixed issue reassigning class to type class with userdefined type #4018
When PredefinedType is not found in the related enum reassign_class is considering it USERDEFINED and trying to set .ObjectType. The problem was it was doing for type classes also, when it should have set .ElementType instead.

Why it crashed BlenderBIM - in IfcClassData.data["has_entity"] we store currently active IFC entity which is recreated during `ifcopenshell.util.schema.reassign_class` making old entity invalid. Since `root.reassign_class` was failing in the process, related BBIM operator was failing too, IfcClassData wasn't updated and removed entity was accessed from UI leading to crash.
2024-04-16 11:05:27 +02:00