Dion Moult
bfabc0db0f
Add support for groups in selection queries
2024-01-09 16:44:40 +11:00
Sigma Dimensions (Yass)
f1b5f7d558
add conversion based unit symbols
2024-01-05 18:45:54 +01:00
Thomas Krijnen
77a497cdf7
Generalize shortened file.schema attribute
2024-01-04 15:05:40 +01:00
Sigma Dimensions (Yass)
c26caaa58d
fix resource cost calculation
2024-01-04 09:33:55 +01:00
Sigma Dimensions (Yass)
b260bd3877
Record formula and resource name for cost values when calculating resource cost
2024-01-04 09:32:31 +01:00
Sigma Dimensions (Yass)
cd6246c382
fix cost value calculation when using parent cost
2024-01-04 09:30:27 +01:00
Andrej730
0fbe4d80c7
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.
2023-12-26 11:33:20 +05:00
Andrej730
0b47fb5987
Fix typo in 92cf0d9
2023-12-22 21:53:31 +05:00
Andrej730
92cf0d9265
remove_representation not to leave brokens refs with batch_remove #4138
2023-12-22 16:04:52 +05:00
Sigma Dimensions (Yass)
46454c5c94
consider unit basis for calculating resource costs #4122
2023-12-20 14:19:16 +01:00
Kristoffer Andersen
96db699ad2
Merge pull request #4125 from Krande/fix/convert-units
...
Proposal for updating IfcPatch ConvertLengthUnit.py for compatibility with boost>=1.82
2023-12-19 06:43:01 +01:00
Sigma Dimensions (Yass)
df390a655d
fix displaying derived task durations
2023-12-17 20:20:52 +01:00
krande
9335c8a0c8
add test and update ci
2023-12-17 18:09:28 +01:00
krande
f5500da0af
remove ifc2x3 conditional in conversion utility
2023-12-16 14:18:13 +01:00
krande
c9552fac29
update name of function to make its purpose more clear
2023-12-16 14:01:36 +01:00
krande
b11b3b7fa8
update unit_assignment
2023-12-16 13:47:18 +01:00
krande
8aecee5836
initial proposal for updating units conversion
2023-12-16 13:37:38 +01:00
Dion Moult
000245c26c
Nesting collections only generate for element nesting, not port nesting
2023-12-14 16:50:56 +11:00
Andrej730
f8af28f12a
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
2023-12-13 16:53:58 +05:00
Andrej730
c4080626df
style.add_surface_texture to work without blender material provided
2023-12-13 14:07:48 +05:00
Bruno Postle
a8078e38d2
Fix Clipping divide error (reported in #4057 )
2023-12-12 22:15:59 +00:00
Dion Moult
7c89d072e2
Fix #4086 . Add support for non predefined bSDD pset and qto values.
2023-12-08 15:07:46 +11:00
Andrej730
f773480917
style.edit_surface_style - fix crash setting attribute to None
...
Occured on setting IfcColourOrFactor attribute to None (e.g. DiffuseColour).
2023-12-07 18:09:17 +05:00
Ryan Schultz
52ae759218
Added classification to selector
2023-12-07 13:39:42 +11:00
Dion Moult
1b35ea122e
Implement support for managing nest hosts and components.
2023-12-07 13:19:29 +11:00
Andrej730
496e58418a
fixed typo
2023-12-01 16:53:50 +05:00
Thomas Krijnen
b976ad3880
occ_utils.py - #1037
2023-12-01 12:42:09 +01:00
MicheleBenedetti
31a763fe12
mistype-fix
2023-12-01 10:34:11 +11:00
Dion Moult
e8bd272189
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.
2023-11-29 14:36:01 +11:00
Bruno Postle
25bd94e84a
minor documentation typo fix
2023-11-28 23:28:38 +00:00
Dion Moult
434a11a502
Fix #4057 . Move clipping info dataclass to util.shape_builder
2023-11-29 09:28:24 +11:00
Dion Moult
03809b3d5e
Fix #3996 . Reassigning occurrences or types now also reassigns the correlating occurrence or type.
2023-11-28 16:44:31 +11:00
Dion Moult
3e268be5c7
Fix #4052 . Bug where invalid plane was generated due to missing X axis.
2023-11-28 11:52:56 +11:00
Dion Moult
6e932ec2fb
Fix #3974 . Bug where orphaned histories would be left in API remove operations.
2023-11-28 10:46:03 +11:00
Dion Moult
14f1acadb7
See #3974 . WIP review to ensure history removal in API.
2023-11-27 18:31:55 +11:00
Dion Moult
5937ed4b63
Fix #4034 . Bug where abstract pset template applicabilities didn't apply to occurrences as well as types.
2023-11-24 14:02:27 +11:00
Bruno Postle
8f650c56e5
Revert 1d972a6 as no datetime.UTC on CI server
2023-11-23 21:59:23 +00:00
Bruno Postle
1d972a6a6f
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).
2023-11-23 21:16:24 +00:00
Bruno Postle
70a1d7d345
python api documentation fix
2023-11-23 21:15:24 +00:00
Andrej730
0da210b732
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
2023-11-23 13:43:39 +05:00
Andrej730
6ee4edd0a0
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.
2023-11-21 12:35:35 +05:00
Dion Moult
229c7285c2
Add support for loading nested elements and consider nesting for indirect spatial containment.
2023-11-20 16:57:38 +11:00
Andrej730
50bbe849ff
minor fix to support union typing before python 3.10 #3774
2023-11-17 18:57:51 +05:00
Andrej730
dc438b2560
ClippingInfo util class to pass and apply plane clippings #3774
...
Co-Authored-By: Carlos Villagrasa <carvillasil@gmail.com >
2023-11-17 16:52:59 +05:00
Andrej730
c6454803ee
fixed issue adding bend between segments located at the same point
...
also added some tests
2023-11-14 17:18:57 +05:00
VDobranov
dd044c8516
Update reference_structure.py
...
A mistype in docs: should be IfcRelReferencedInSpatialStructure instead of IfcRelContainedInSpatialStructure
2023-11-11 12:56:26 +01:00
Andrej730
c26988b292
root.remove_product to remove IfcRelFlowControlElements
2023-11-10 12:10:22 +05:00
Andrej730
9a80dc14e9
api for assigning/unassigning flow controls #3981
2023-11-09 17:34:26 +05:00
Andrej730
6bda066e1b
Fixed typo in control.assign_control, added tests
2023-11-09 15:33:31 +05:00
Dion Moult
0de0422c2e
Minor fix
2023-11-03 22:45:42 +11:00