Andrej730
90a77d3453
geometry.remove_representation documentation
2024-04-16 11:28:59 +02:00
Andrej730
947ae02ab9
black format
2024-04-16 11:28:59 +02:00
Andrej730
c3ddfbdae2
fix couple building docs errors / warnings
2024-04-16 11:28:59 +02:00
Dion Moult
7b7dece5e7
See #4240 . Guard against possible user creating invalid userdefined attribute values.
2024-04-16 11:28:58 +02:00
Dion Moult
0d3901336b
See #4240 . Fix validation issue with perspective drawing pyramid booleans. Boolean clipping results can only be used on swept solids.
2024-04-16 11:28:58 +02:00
Dion Moult
34c6be0f02
See #4240 . Fix bug where 2D arbitrary profiles were invalid IFC (used 3D point lists not 2D)
2024-04-16 11:28:58 +02:00
Dion Moult
1fbc770775
Fix #4211 . Minor documentation fix that clarifies upstream bug about whether qto can be assigned to types.
2024-04-16 11:26:37 +02:00
Dion Moult
aafda4e787
Fix #4224 . Fix sequencing lint bugs.
2024-04-16 11:26:36 +02:00
Dion Moult
33051c0139
Fix #4203 . Fix bug where removing nested cost items left orphaned relationships.
2024-04-16 11:26:36 +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
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
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
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
Andrej730
661d6bcfe7
fixed typo
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
ac42318a64
Fix #3974 . Bug where orphaned histories would be left in API remove operations.
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
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
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
Andrej730
8dc9376844
ClippingInfo util class to pass and apply plane clippings #3774
...
Co-Authored-By: Carlos Villagrasa <carvillasil@gmail.com >
2024-04-16 11:05:26 +02:00
VDobranov
8dfd122430
Update reference_structure.py
...
A mistype in docs: should be IfcRelReferencedInSpatialStructure instead of IfcRelContainedInSpatialStructure
2024-04-16 11:05:26 +02:00
Andrej730
944f8695c7
root.remove_product to remove IfcRelFlowControlElements
2024-04-16 11:05:25 +02:00
Andrej730
72b3f1e967
api for assigning/unassigning flow controls #3981
2024-04-16 11:05:25 +02:00
Andrej730
1bb5a14b65
Fixed typo in control.assign_control, added tests
2024-04-16 11:05:25 +02:00
Dion Moult
142968559d
Minor fix
2024-04-16 11:05:24 +02:00
Dion Moult
7f1a500445
Fix #3957 . Fix bug where shared properties were not edited independently.
2024-04-16 11:05:24 +02:00
Dion Moult
2bd7ce5996
Fix #3958 . Bug where reassigning type class would incorrectly assign occurrence classes.
2024-04-16 11:05:24 +02:00
Dion Moult
f9236f8b42
You can now assign and unassign styles to materials
2024-04-16 11:04:29 +02:00
Andrej730
6a7f8f65c7
move to tools methods for working with manual booleans #3709
...
Also fixed a bug adding boolean when pset is already added and representation type in add_boolean
```
File "\addons\blenderbim\tool\ifc.py", line 201, in execute
IfcStore.execute_ifc_operator(self, context)
File "\addons\blenderbim\bim\ifc.py", line 336, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\addons\blenderbim\bim\module\model\opening.py", line 534, in _execute
data = json.loads(pset["Data"])
File "\addons\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 248, in __getitem__
if key < 0 or key >= len(self):
TypeError: '<' not supported between instances of 'str' and 'int'
```
2024-04-16 11:04:28 +02:00
Andrej730
f8a2946355
Support other voiding IfcFeatureElementSubtraction elements #3889
...
Support other voiding IfcFeatureElementSubtraction besides IfcOpeningElement.
2024-04-16 11:03:55 +02:00
Andrej730
4cf6d65e1a
Fixed issue after 19345ff
...
It wasn't considering that EnumerationReference could be None
2024-04-16 11:03:55 +02:00
Andrej730
e1b64fba00
Keep placement axes recalculating profiles #3879
2024-04-16 10:56:22 +02:00
Andrej730
e2077c27dd
small fix add_profile_representation - use of undefined variables
2024-04-16 10:56:22 +02:00
Dion Moult
00239234ff
Manual booleans are now tracked via a Pset instead of arbitrary class conventions which should fix a bunch of issues.
2024-04-16 10:55:57 +02:00
Andrej730
739b793cd7
test for model.get_manual_booleans() #3709
...
added test that model.get_manual_booleans will ignore IfcBooleanClippings until we find some other solution to distinguish automatic and manual clippings. And some refactor along the way.
2024-04-16 10:55:56 +02:00
taylor
c88b3a3ad8
Fixed model reference
2024-04-16 10:55:56 +02:00
Andrej730
984dca6408
Fixed #3832
2024-04-16 10:37:19 +02:00
Sigma Dimensions (Yass)
6b25a64976
fix typo
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
e9ed850b78
Proposal to use resource's parent cost, reducing manual insertions
2024-04-16 10:37:17 +02:00