Andrej730
acf135a6ed
Store item_ids in imported meshes and set them on toggling edit mode
...
It will be used later to add more IFC capabilities to EDIT mode.
Example - https://imgur.com/a/HAkjoCY
2024-07-08 17:46:11 +05:00
Andrej730
dd561d3703
remove material assignment listener #4843
2024-07-08 17:46:11 +05:00
Dion Moult
ff662fdfcf
Merging projects now accomodates models with different project norths
2024-07-08 11:38:42 +10:00
Dion Moult
a3844fe098
More tests and fixes for linking in models with different project norths
2024-07-07 23:59:13 +10:00
Dion Moult
22b7027746
Fix bug where automatic false origin detection didn't do anything if linking from an empty Blender session
2024-07-07 15:53:06 +10:00
Andrej730
8a9ca9ac60
remove bbim material unassignment listener #4843
...
Listeners are implicit and get in the way sometimes, we should work on our core methods and make explicit calls.
2024-07-05 18:33:48 +05:00
Andrej730
1cdd4c27fc
fix geometry core tests after fccf56d5f
2024-07-05 17:57:17 +05:00
Andrej730
7acea25fdf
fix material core tests after 58a7ef6
2024-07-05 17:57:17 +05:00
Andrej730
5a0df870f5
bim.add_representation - update occurrences too if there were no representations
...
and new representation was just added to the type
Example - https://imgur.com/a/v6a5kg2
2024-07-03 18:12:21 +05:00
Andrej730
3f2703ca21
tool.Geometry method for adding a data to an empty object
2024-07-03 18:12:21 +05:00
Andrej730
bd7ee0a1c6
Recent IFC projects - add tests
2024-07-01 18:26:04 +05:00
Dion Moult
4e9f2ea4b2
Add georeferencing integration tests
2024-06-30 17:01:39 +10:00
Dion Moult
2efeb6edb3
Fix bug where context has no active_object when creating a new project from File > New with a preset
2024-06-29 22:20:08 +10:00
Dion Moult
008fa70345
Fix failing collector tests to align with new behaviour
2024-06-28 21:15:53 +10:00
Andrej730
d0ec4fe345
core tests - print unprocessed calls in pytest verbose mode
...
e.g. if you start test with pytest test_style.py -vv it will be easier to guess why it couldn't find a call
```
E Exception: <class 'abc.Ifc'> was not called with run:
E - {'type': 'SHOULD_BE_CALLED', 'number': None, 'call': {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'style', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}}
E Unprocessed calls:
E - {'name': 'run', 'args': ('style.add_style',), 'kwargs': {'name': 'name'}}
E - {'name': 'link', 'args': ('element', 'obj'), 'kwargs': {}}
E - {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'element', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}
```
2024-06-26 16:14:00 +05:00
Andrej730
665bf00f8b
fix core.style tests #4843
2024-06-26 16:14:00 +05:00
Andrej730
60cb41a428
remove some props from Material.BIMStyleProperties as deprecated #4843
2024-06-26 16:13:59 +05:00
Andrej730
2f81cab5f1
deprecate Material.BIMMaterialProperties #4843
...
As it now stored just 1 property and it's now moved to the BIMStyleProperties.
2024-06-26 16:13:59 +05:00
Dion Moult
3aba82f608
Ensure all project feature tests pass
2024-06-26 17:14:39 +10:00
Andrej730
ef9bbd8de6
deprecate shading_checksum #4843
...
Changing diffuse color for Blender material now won't change the linked IFC style.
Since now all style parameters for styles are changed through styles UI and users shouldn't use Blender materials tab unless they want to do something advanced (though they are still currently can use it to assign material styles to the specific faces).
PS 1 less thing to sync 🥳
2024-06-25 18:30:52 +05:00
Andrej730
c4ae9578e9
fix styles update on material assignment/unassignment #4843
2024-06-21 17:50:22 +05:00
Andrej730
1f7d80e6f1
remove unused argument
2024-06-14 19:14:20 +05:00
Andrej730
114fca8be5
unassociate bim.add_material from blender materials #4843
2024-06-14 19:14:20 +05:00
Andrej730
d4ff2c8dda
typing
2024-06-14 19:14:20 +05:00
Andrej730
75f8e75a8e
ifc.unlink fixes after 3df75e9af
...
Also some changes related to #4843
add
2024-06-14 19:14:19 +05:00
Andrej730
2fbac57faf
remove bim.unlink_material #4843
2024-06-11 18:26:19 +05:00
Dion Moult
1b63d9e88f
Railing/roof/stair/window now use default collection. Continue removing old "active collection" code.
2024-06-10 16:13:00 +10:00
Dion Moult
94f54fd4cb
Generating a space now is based on the default collection
2024-06-10 15:36:55 +10:00
Dion Moult
e3cb811225
WARNING: Remove collection syncing. The outliner no longer is used to change spatial hierarchy.
...
This is a BREAKING change (on purpose). If you want to change containment / aggregation, use the UI panels, not drag and drop on the outliner.
2024-06-07 22:55:18 +10:00
Dion Moult
6eb3c48144
Fix #3973 . Fix #4787 . Clarify that you cannot have aggregated physical elements where the whole has a body representation.
2024-06-03 15:37:24 +10:00
Dion Moult
44d180007e
Migrate test qto tool to new qto calculator
2024-06-03 15:16:27 +10:00
Andrej730
a09cb5dee4
typing
2024-05-28 18:00:21 +05:00
Andrej730
6035683492
sync get_base_qto after 70a4af2
2024-05-28 12:59:34 +05:00
Andrej730
f27dbacd28
prioritize qto base psets over other qto_ qsets after 70a4af2 #4740
...
1) e.g. in ifc4x3 previously for IfcWall it would prioritize Qto_BodyGeometryValidation over Qto_WallBaseQuantities
2) It would also prioritize general Qto_BodyGeometryValidation over Qto_BuildingElementProxyQuantities.
3) removed "Qto_" check as we do qto_only in get_applicable_names
2024-05-28 12:59:34 +05:00
Andrej730
f576aadee1
typing
2024-05-24 19:15:51 +05:00
Andrej730
df15a37127
fix core.root.assign_class error after 3884403 #4719
2024-05-24 15:22:55 +05:00
Andrej730
c70745826a
rename bim.export_ifc to bim.save_project (similar to bim.load_project)
...
note that old name "export_ifc.bim" is still available (cacb38a25 ) though deprecated
2024-05-23 18:45:30 +05:00
Andrej730
cacb38a251
maintain "bim." as operators bl_idname prefix for BlenderBIM
...
1) removed unused operator import_ifc.bim
2) marked export_ifc.bim as deprecated
2024-05-20 17:19:00 +05:00
Andrej730
42be4eb064
typing
2024-05-17 17:31:01 +05:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Andrej730
721466c429
typing
2024-04-25 18:05:47 +05:00
Andrej730
e14d96e6ee
Use .Name instead of .Description if IFC2X3 for sheets #4576
...
As Description was added only in IFC4
2024-04-24 18:17:37 +05:00
Andrej730
836293504c
ifctester typing
2024-04-16 16:39:55 +05:00
Andrej730
aeea9dfb5e
fix test after ac64d0c40
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
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